From ed6fb1888e37a13dc4d9bbd35f0d55cc0cc5456b Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Sun, 17 Mar 2019 15:02:17 +0000 Subject: [PATCH] usbboot: Add bulk transfer timeout Change-type: patch Signed-off-by: Juan Cruz Viotti --- lib/sdk/adapters/usbboot/protocol.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/sdk/adapters/usbboot/protocol.js b/lib/sdk/adapters/usbboot/protocol.js index dcc91914..9a4a68e9 100644 --- a/lib/sdk/adapters/usbboot/protocol.js +++ b/lib/sdk/adapters/usbboot/protocol.js @@ -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