usbboot: Add bulk transfer timeout

Change-type: patch
Signed-off-by: Juan Cruz Viotti <juan@balena.io>
This commit is contained in:
Juan Cruz Viotti 2019-03-17 15:02:17 +00:00
parent a3bd09337b
commit ed6fb1888e
No known key found for this signature in database
GPG Key ID: D01B10083038B3E8

View File

@ -112,8 +112,7 @@ const USB_REQUEST_DELAY_MS = 1000
* @type {Number}
* @constant
*/
// In node-usb, 0 means "infinite" timeout
const USB_BULK_TRANSFER_TIMEOUT_MS = 0
const USB_BULK_TRANSFER_TIMEOUT_MS = 10000
/**
* @summary The amount of bits to shift to the right on a control transfer index