diff options
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"); |