Use waitForKbootIdle() in update-module-firmware.js

This commit is contained in:
László Monda
2018-01-31 02:28:29 +01:00
parent 9589398834
commit aabc0a8746

View File

@@ -26,8 +26,8 @@ const blhostBuspal = `${blhostUsb} --buspal i2c,${i2cAddress}`;
let device = uhk.getUhkDevice();
await uhk.sendKbootCommandToModule(device, uhk.kbootCommands.ping, i2cAddress);
await uhk.jumpToModuleBootloader(device, moduleSlotId);
await uhk.waitForKbootIdle(device);
device.close();
exec(`${usbDir}/wait-for-kboot-idle.js`);
await uhk.reenumerate('buspal');
uhk.execRetry(`${blhostBuspal} get-property 1`);