Add usbCommands.

This commit is contained in:
László Monda
2017-01-15 01:12:01 +01:00
parent 0e59a99e36
commit e83a7b8cf6

View File

@@ -22,6 +22,20 @@ exports = module.exports = {
return [endpointIn, endpointOut];
},
usbCommands: {
getProperty: 0,
jumpToBootloader: 1,
setTestLed: 2,
writeLedDriver: 3,
readLedDriver: 4,
writeEeprom: 5,
readEeprom: 6,
readMergeSensor: 7,
uploadConfig: 8,
applyConfig: 9,
setLedPwm: 10
},
bufferToString: buffer => {
let str = '';
for (let i = 0; i < buffer.length; i++) {