diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-03-05 17:30:02 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-03-05 17:30:02 +0100 |
commit | 3c309a3b8ab4be9da03b0a290a70c3030cbd126c (patch) | |
tree | 74747050bd6b28bc697301ab0f8a0f4b68372fd3 | |
parent | a318d18d818d29751c279c595e28ffd0b3ac21b8 (diff) | |
download | libgphoto2-3c309a3b8ab4be9da03b0a290a70c3030cbd126c.tar.gz |
timeout 0 in libusb 0.x is also okish
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index 912b67280..c91f8361c 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -460,6 +460,7 @@ gp_port_usb_check_int (GPPort *port, char *bytes, int size, int timeout) C_PARAMS (port && port->pl->dh && timeout >= 0); + /* 0 timeout is okish ... libusb 0.x it will do 1 poll though */ ret = usb_interrupt_read(port->pl->dh, port->settings.usb.intep, bytes, size, timeout); if (ret < 0) { |