1
0
Fork 0

smaller instructions

master
Ambrose Chua 2015-12-16 14:43:17 +08:00
parent 1bc9b09427
commit 9a8389abf4
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}
}