Rename getProperty to getDeviceProperty and getModuleProperties to getModuleProperty.

This commit is contained in:
László Monda
2017-12-29 13:23:58 +01:00
parent 227f8f0d2c
commit e3c65f77df
6 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ const uhk = require('./uhk');
const device = uhk.getUhkDevice();
function getModuleState() {
const payload = new Buffer([uhk.usbCommands.getModuleProperties, 1]);
const payload = new Buffer([uhk.usbCommands.getModuleProperty, 1]);
console.log('Sending ', uhk.bufferToString(payload));
device.write(uhk.getTransferData(payload));
const receivedBuffer = device.readSync();