mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 23:37:18 +00:00
usbboot: Add bulk transfer timeout
Change-type: patch Signed-off-by: Juan Cruz Viotti <juan@balena.io>
This commit is contained in:
parent
a3bd09337b
commit
ed6fb1888e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user