Increment the argument of jumpToSlaveBootloader now that it's been changed from UHK module driver id to slot id.

This commit is contained in:
László Monda
2017-11-06 00:29:24 +01:00
parent a5c478d51c
commit 5252ec3702

View File

@@ -2,6 +2,6 @@
const uhk = require('./uhk');
const device = uhk.getUhkDevice();
let transfer = new Buffer([uhk.usbCommands.jumpToSlaveBootloader, 0]);
let transfer = new Buffer([uhk.usbCommands.jumpToSlaveBootloader, 1]);
device.write(uhk.getTransferData(transfer));
const response = Buffer.from(device.readSync());