From f6b8e0eae4374f339487a33e3e4fe5462d5816e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 25 Nov 2017 10:16:00 +0100 Subject: New upstream version 2.0.0 --- spectro/usbio_nt.c | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 spectro/usbio_nt.c (limited to 'spectro/usbio_nt.c') diff --git a/spectro/usbio_nt.c b/spectro/usbio_nt.c old mode 100644 new mode 100755 index 34426fd..f3748bb --- 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; -- cgit v1.2.3