diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-25 10:16:00 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-25 10:16:00 +0100 |
commit | f6b8e0eae4374f339487a33e3e4fe5462d5816e1 (patch) | |
tree | 5f5f764fd6cda404b2ad6e85762c03fce3a335db /spectro/usbio_lx.c | |
parent | 615ab5513e79c4abc5bbe5c993587785b6a1738b (diff) |
New upstream version 2.0.0upstream/2.0.0
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"); |