Add a 1s delay to updateDeviceFirmware()
This commit is contained in:
@@ -178,6 +178,7 @@ async function updateDeviceFirmware(firmwareImage, extension) {
|
||||
config.verbose = true;
|
||||
|
||||
await uhk.reenumerate('bootloader');
|
||||
await sleep(1000);
|
||||
exec(`${blhost} flash-security-disable 0403020108070605`);
|
||||
exec(`${blhost} flash-erase-region 0xc000 475136`);
|
||||
exec(`${blhost} flash-image ${firmwareImage}`);
|
||||
|
||||
Reference in New Issue
Block a user