Slightly tweak USB command names.

This commit is contained in:
László Monda
2017-11-08 23:13:03 +01:00
parent 6ba6ad543e
commit f9e1d022f2
6 changed files with 14 additions and 14 deletions

View File

@@ -33,6 +33,6 @@ if (kbootCommand !== 'idle') {
}
const device = uhk.getUhkDevice();
let transfer = new Buffer([uhk.usbCommands.sendKbootCommand, kbootCommandId, parseInt(i2cAddress)]);
let transfer = new Buffer([uhk.usbCommands.sendKbootCommandToModule, kbootCommandId, parseInt(i2cAddress)]);
device.write(uhk.getTransferData(transfer));
const response = Buffer.from(device.readSync());