From aaebf0e051cd3515d430ae855e0753f6b5d7fa98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 26 Sep 2016 02:38:12 +0200 Subject: [PATCH] Prefix the state of the LED with the ID of the LED test command. --- usb/blink-test-led.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb/blink-test-led.js b/usb/blink-test-led.js index 900e6d8f..a28618ec 100755 --- a/usb/blink-test-led.js +++ b/usb/blink-test-led.js @@ -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);