From 9a8389abf4dbe66659a5c333d5f45dd7390eeb4f Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Wed, 16 Dec 2015 14:43:17 +0800 Subject: [PATCH] smaller instructions --- USBStrip/USBStrip.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/USBStrip/USBStrip.ino b/USBStrip/USBStrip.ino index d306ce1..9852ac0 100644 --- a/USBStrip/USBStrip.ino +++ b/USBStrip/USBStrip.ino @@ -12,7 +12,7 @@ void setup() { } void loop() { - if (SerialUSB.available() > 1 && SerialUSB.read() == 0x10) { + if (SerialUSB.available() > 0) { byte command = SerialUSB.read(); if (command == 0x11) { LED.sync(); @@ -35,7 +35,6 @@ void loop() { else { SerialUSB.write(0x1e); } - SerialUSB.flush(); } }