From f5fcdf4acb4c47329ca74d91e2512c864548a5fa Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 10 Oct 2017 23:59:49 +0100 Subject: [PATCH] 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 --- lib/shared/sdk/usbboot/protocol.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shared/sdk/usbboot/protocol.js b/lib/shared/sdk/usbboot/protocol.js index acd8303d..607e46d1 100644 --- a/lib/shared/sdk/usbboot/protocol.js +++ b/lib/shared/sdk/usbboot/protocol.js @@ -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