From aabc0a874632eda41345c30558adb27b444b6843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Wed, 31 Jan 2018 02:28:29 +0100 Subject: [PATCH] Use waitForKbootIdle() in update-module-firmware.js --- packages/usb/update-module-firmware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/usb/update-module-firmware.js b/packages/usb/update-module-firmware.js index 2832f2c8..a1e9ac8c 100755 --- a/packages/usb/update-module-firmware.js +++ b/packages/usb/update-module-firmware.js @@ -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`);