summaryrefslogtreecommitdiffstats
path: root/backend_hiti.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-11-06 14:18:49 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-11-06 14:18:49 -0500
commite92762196d3a54c02e9f1b08345bc7518e76378d (patch)
tree2386e99c71f64b271b37341d671e8406d0a8e981 /backend_hiti.c
parentd2d66174006f194cfeed8c31529d9ad493bb5d5d (diff)
downloadselphy_print-e92762196d3a54c02e9f1b08345bc7518e76378d.tar.gz
selphy_print-e92762196d3a54c02e9f1b08345bc7518e76378d.tar.bz2
selphy_print-e92762196d3a54c02e9f1b08345bc7518e76378d.zip
common: Pass bInterfaceNo into backend->query_serno() call
Also allow the USB iSerialNumber value to be ignored.
Diffstat (limited to 'backend_hiti.c')
-rw-r--r--backend_hiti.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend_hiti.c b/backend_hiti.c
index aa1b905..cdbb6ef 100644
--- a/backend_hiti.c
+++ b/backend_hiti.c
@@ -2059,12 +2059,14 @@ static int hiti_query_counter(struct hiti_ctx *ctx, uint8_t arg, uint32_t *resp)
return CUPS_BACKEND_OK;
}
-static int hiti_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, char *buf, int buf_len)
+static int hiti_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, int iface, char *buf, int buf_len)
{
int ret;
uint16_t rsplen = 18;
uint8_t rspbuf[18];
+ UNUSED(iface);
+
struct hiti_ctx ctx = {
.dev = dev,
.endp_up = endp_up,