diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-01 10:32:14 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-01 10:32:14 +0100 |
commit | 4097e27114d227692d53c5d28487e12a3833cd24 (patch) | |
tree | d5c2a62c4db97de94f92150340612c64d3997669 /spectro/usbio_nt.c | |
parent | f8a0a4e1c775a90c313cb83201eec4cea4e9a7da (diff) | |
parent | 5514d94483c98e3320b202b1bb882023a7d12027 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'spectro/usbio_nt.c')
-rwxr-xr-x[-rw-r--r--] | spectro/usbio_nt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spectro/usbio_nt.c b/spectro/usbio_nt.c index 34426fd..f3748bb 100644..100755 --- a/spectro/usbio_nt.c +++ b/spectro/usbio_nt.c @@ -589,6 +589,9 @@ static int icoms_usb_transaction( a1logd(p->log, 8, "icoms_usb_transaction: req type 0x%x ep 0x%x size %d\n",ttype,endpoint,length); + if (transferred != NULL) + *transferred = 0; + if (ttype != icom_usb_trantype_interrutpt && ttype != icom_usb_trantype_bulk) { /* We only handle interrupt & bulk, not control */ @@ -692,6 +695,9 @@ int timeout) { a1logd(p->log, 8, "icoms_usb_control_msg: type 0x%x req 0x%x size %d\n",requesttype,request,size); + if (transferred != NULL) + *transferred = 0; + memset(&req, 0, sizeof(libusb_request)); req.timeout = timeout; |