Prefix the state of the LED with the ID of the LED test command.

This commit is contained in:
László Monda
2016-09-26 02:38:12 +02:00
parent 554a7b45f6
commit aaebf0e051

View File

@@ -24,7 +24,7 @@ setInterval(function() {
console.log('Sending ', state);
state = state ? 0 : 1
console.log(state)
endpointOut.transfer(new Buffer([state]), function(err) {
endpointOut.transfer(new Buffer([1, state]), function(err) {
if (err) {
console.error("USB error: %s", err);
process.exit(1);