Make the bootloader timeout of the reenumerate script specifiable.
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
const uhk = require('./uhk');
|
||||
const program = require('commander');
|
||||
|
||||
program.parse(process.argv);
|
||||
program
|
||||
.option('-t, --timeout <ms>', 'Bootloader timeout in ms', 5000)
|
||||
.parse(process.argv);
|
||||
|
||||
const enumerationMode = program.args[0];
|
||||
|
||||
(async function() {
|
||||
await uhk.reenumerate(enumerationMode);
|
||||
await uhk.reenumerate(enumerationMode, program.timeout);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user