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

@@ -10,7 +10,7 @@ let offset = 0;
let configBuffer = new Buffer(0);
let chunkSizeToRead;
const payload = new Buffer([uhk.usbCommands.getProperty, uhk.devicePropertyIds.configSizes]);
const payload = new Buffer([uhk.usbCommands.getDeviceProperty, uhk.devicePropertyIds.configSizes]);
device.write(uhk.getTransferData(payload));
let buffer = Buffer.from(device.readSync());
const hardwareConfigMaxSize = buffer[1] + (buffer[2]<<8);