mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
fix(sdk): increase bulk transfer usb timeouts (#1759)
We experienced timeouts when sending big files (ie ~14 MBs). Setting the timeout to 0 makes the timeout infinite. Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
parent
8aa58a722b
commit
f5fcdf4acb
@ -110,7 +110,8 @@ const USB_REQUEST_DELAY_MS = 1000
|
||||
* @type {Number}
|
||||
* @constant
|
||||
*/
|
||||
const USB_BULK_TRANSFER_TIMEOUT_MS = 1000
|
||||
// In node-usb, 0 means "infinite" timeout
|
||||
const USB_BULK_TRANSFER_TIMEOUT_MS = 0
|
||||
|
||||
/**
|
||||
* @summary The amount of bits to shift to the right on a control transfer index
|
||||
|
Loading…
x
Reference in New Issue
Block a user