diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-11-06 14:18:49 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-11-06 14:18:49 -0500 |
commit | e92762196d3a54c02e9f1b08345bc7518e76378d (patch) | |
tree | 2386e99c71f64b271b37341d671e8406d0a8e981 /backend_sinfonia.c | |
parent | d2d66174006f194cfeed8c31529d9ad493bb5d5d (diff) | |
download | selphy_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_sinfonia.c')
-rw-r--r-- | backend_sinfonia.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend_sinfonia.c b/backend_sinfonia.c index 7a1348b..093f4ec 100644 --- a/backend_sinfonia.c +++ b/backend_sinfonia.c @@ -779,7 +779,7 @@ const char *dummy_error_codes(uint8_t major, uint8_t minor) return "Unknown"; } -int sinfonia_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, char *buf, int buf_len) +int sinfonia_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, int iface, char *buf, int buf_len) { struct sinfonia_cmd_hdr cmd; struct sinfonia_getserial_resp resp; @@ -787,6 +787,7 @@ int sinfonia_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint struct sinfonia_usbdev sdev = { .dev = dev, + .iface = iface, .endp_up = endp_up, .endp_down = endp_down, .error_codes = dummy_error_codes, |