Change timeout in ep_read to 2 seconds

Fixes a small number of booting problems
This commit is contained in:
Gordon Hollingworth 2017-06-12 06:37:04 +01:00 committed by GitHub
parent c0af212f2f
commit 9df17b5809

2
main.c
View File

@ -162,7 +162,7 @@ int ep_read(void *buf, int len, libusb_device_handle * usb_device)
libusb_control_transfer(usb_device,
LIBUSB_REQUEST_TYPE_VENDOR |
LIBUSB_ENDPOINT_IN, 0, len & 0xffff,
len >> 16, buf, len, 1000);
len >> 16, buf, len, 2000);
if(ret >= 0)
return len;
else