Make the bootloader timeout of the reenumerate script specifiable.

This commit is contained in:
László Monda
2018-05-16 23:19:36 +02:00
parent 17693ec8fe
commit eb97dd844f
5 changed files with 10 additions and 11 deletions

View File

@@ -191,8 +191,7 @@ async function updateDeviceFirmware(firmwareImage, extension) {
// USB commands
function reenumerate(enumerationMode) {
const bootloaderTimeoutMs = 5000;
function reenumerate(enumerationMode, bootloaderTimeoutMs=5000) {
const pollingIntervalMs = 100;
let pollingTimeoutMs = 10000;