Add a 1s delay to updateDeviceFirmware()

This commit is contained in:
László Monda
2019-05-23 01:26:32 +02:00
parent 5657579d6d
commit 4dd2400d36

View File

@@ -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}`);