Commit 9df17b580936c213eb979716bc8b20436d9e8d9c

Authored by Gordon Hollingworth
Committed by GitHub
1 parent c0af212f

Change timeout in ep_read to 2 seconds

Fixes a small number of booting problems
Showing 1 changed file with 1 additions and 1 deletions
@@ -162,7 +162,7 @@ int ep_read(void *buf, int len, libusb_device_handle * usb_device) @@ -162,7 +162,7 @@ int ep_read(void *buf, int len, libusb_device_handle * usb_device)
162 libusb_control_transfer(usb_device, 162 libusb_control_transfer(usb_device,
163 LIBUSB_REQUEST_TYPE_VENDOR | 163 LIBUSB_REQUEST_TYPE_VENDOR |
164 LIBUSB_ENDPOINT_IN, 0, len & 0xffff, 164 LIBUSB_ENDPOINT_IN, 0, len & 0xffff,
165 - len >> 16, buf, len, 1000); 165 + len >> 16, buf, len, 2000);
166 if(ret >= 0) 166 if(ret >= 0)
167 return len; 167 return len;
168 else 168 else