Skip to content

Commit e069871

Browse files
authored
Increased timeout passed to hid_read_timeout() - set to 10000 for consistency (avrdudes#901)
1 parent 0aa4396 commit e069871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usb_hidapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static int usbhid_recv(union filedescriptor *fd, unsigned char *buf, size_t nbyt
291291
if (udev == NULL)
292292
return -1;
293293

294-
rv = i = hid_read_timeout(udev, buf, nbytes, 300);
294+
rv = i = hid_read_timeout(udev, buf, nbytes, 10000);
295295
if (i != nbytes)
296296
avrdude_message(MSG_INFO,
297297
"%s: Short read, read only %d out of %u bytes\n",

0 commit comments

Comments
 (0)