Extract uhk.jumpToModuleBootloader() and use it.

This commit is contained in:
László Monda
2018-01-31 01:17:28 +01:00
parent 4f8a0247d3
commit df14e2d569
3 changed files with 8 additions and 2 deletions

View File

@@ -11,5 +11,5 @@ const moduleSlotId = uhk.checkModuleSlot(moduleSlot, uhk.moduleSlotToId);
const device = uhk.getUhkDevice();
(async function() {
await uhk.writeDevice(device, [uhk.usbCommands.jumpToModuleBootloader, moduleSlotId]);
await uhk.jumpToModuleBootloader(device, moduleSlotId);
})();