diff --git a/packages/usb/apply-config.js b/packages/usb/apply-config.js new file mode 100755 index 00000000..51f296d7 --- /dev/null +++ b/packages/usb/apply-config.js @@ -0,0 +1,8 @@ +#!/usr/bin/env node +const uhk = require('./uhk'); + +const device = uhk.getUhkDevice(); +const sendData = new Buffer([uhk.usbCommands.applyConfig]); +device.write(uhk.getTransferData(sendData)); +const response = Buffer.from(device.readSync()); +console.log(response);