diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-25 10:16:54 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-25 10:16:54 +0100 |
commit | 1b1126bd023a2bb92699773a1867358067dabcb8 (patch) | |
tree | 6fd56d034e5a154c7992e7855d61691cecd043c4 /spectro/usbio_lx.c | |
parent | cb5c7cec4aa1946f75dc3d408eb7f1051f3fb3d4 (diff) | |
parent | f6b8e0eae4374f339487a33e3e4fe5462d5816e1 (diff) |
Update upstream source from tag 'upstream/2.0.0'
Update to upstream version '2.0.0'
with Debian dir e866e6e75661017faaa5331becda76021407390b
Diffstat (limited to 'spectro/usbio_lx.c')
-rwxr-xr-x[-rw-r--r--] | spectro/usbio_lx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spectro/usbio_lx.c b/spectro/usbio_lx.c index 6edcb29..135f8eb 100644..100755 --- a/spectro/usbio_lx.c +++ b/spectro/usbio_lx.c @@ -22,6 +22,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <sys/ioctl.h> +#include <sys/time.h> #include <linux/usbdevice_fs.h> /* select() defined, but not poll(), so emulate poll() */ @@ -785,6 +786,9 @@ static int icoms_usb_transaction( in_usb_rw++; a1logd(p->log, 8, "icoms_usb_transaction: req type 0x%x ep 0x%x size %d to %d\n",ttype,endpoint,length, timeout); + if (transferred != NULL) + *transferred = 0; + if (!p->usbd->running) { in_usb_rw--; a1logv(p->log, 1, "icoms_usb_transaction: reaper thread is not running\n"); |