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:
joerg_wunsch 2016-03-02 21:04:36 +00:00
parent 2bfcdee899
commit 37cb2ad56c
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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",