Increased timeout passed to hid_read_timeout() - set to 10000 for consistency (#901)

This commit is contained in:
Nav 2022-03-31 22:26:53 +01:00 committed by GitHub
parent 0aa43968a0
commit e069871c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ static int usbhid_recv(union filedescriptor *fd, unsigned char *buf, size_t nbyt
if (udev == NULL) if (udev == NULL)
return -1; return -1;
rv = i = hid_read_timeout(udev, buf, nbytes, 300); rv = i = hid_read_timeout(udev, buf, nbytes, 10000);
if (i != nbytes) if (i != nbytes)
avrdude_message(MSG_INFO, avrdude_message(MSG_INFO,
"%s: Short read, read only %d out of %u bytes\n", "%s: Short read, read only %d out of %u bytes\n",