Add a 1s delay to updateModuleFirmware()

This commit is contained in:
László Monda
2019-05-23 01:10:54 +02:00
parent 58b83f2b6b
commit 5657579d6d

View File

@@ -303,6 +303,7 @@ async function updateModuleFirmware(i2cAddress, moduleSlotId, firmwareImage) {
exec(`${blhostUsb} reset`);
await uhk.reenumerate('normalKeyboard');
await sleep(1000);
device = uhk.getUhkDevice();
await uhk.sendKbootCommandToModule(device, uhk.kbootCommands.reset, i2cAddress);
await sleep(1000);