Add scripts for getting/setting firmware variables (#734)
This commit is contained in:
10
packages/usb/set-variable.js
Executable file
10
packages/usb/set-variable.js
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const uhk = require('./uhk');
|
||||
const device = uhk.getUhkDevice();
|
||||
const sendData = new Buffer([uhk.usbCommands.setVariable, +process.argv[2], +process.argv[3]]);
|
||||
|
||||
console.log(sendData);
|
||||
device.write(uhk.getTransferData(sendData));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user