Bump read timeout in usbhid_recv() to 300 ms.
In some situations (e.g. when accessing a DW-fused device), 100 ms have proven to be too short. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1387 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
a6dc66fb9e
commit
02e6082312
|
@ -1,3 +1,7 @@
|
|||
2016-03-02 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||
|
||||
* usb_hidapi.c (usbhid_recv): Bump read timeout to 300 ms.
|
||||
|
||||
2016-02-20 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||
|
||||
* jtag3.c: add support for libhidapi as (optional) transport for
|
||||
|
|
|
@ -294,7 +294,7 @@ static int usbhid_recv(union filedescriptor *fd, unsigned char *buf, size_t nbyt
|
|||
if (udev == NULL)
|
||||
return -1;
|
||||
|
||||
rv = i = hid_read_timeout(udev, buf, nbytes, 100);
|
||||
rv = i = hid_read_timeout(udev, buf, nbytes, 300);
|
||||
if (i != nbytes)
|
||||
avrdude_message(MSG_INFO,
|
||||
"%s: Short read, read only %d out of %u bytes\n",
|
||||
|
|
Loading…
Reference in New Issue