Add a 1s delay to updateModuleFirmware()
This commit is contained in:
@@ -303,6 +303,7 @@ async function updateModuleFirmware(i2cAddress, moduleSlotId, firmwareImage) {
|
|||||||
exec(`${blhostUsb} reset`);
|
exec(`${blhostUsb} reset`);
|
||||||
|
|
||||||
await uhk.reenumerate('normalKeyboard');
|
await uhk.reenumerate('normalKeyboard');
|
||||||
|
await sleep(1000);
|
||||||
device = uhk.getUhkDevice();
|
device = uhk.getUhkDevice();
|
||||||
await uhk.sendKbootCommandToModule(device, uhk.kbootCommands.reset, i2cAddress);
|
await uhk.sendKbootCommandToModule(device, uhk.kbootCommands.reset, i2cAddress);
|
||||||
await sleep(1000);
|
await sleep(1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user