Prefix the state of the LED with the ID of the LED test command.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user