--- a/src/hello-dmx.c Fri Apr 11 22:22:11 2014 +0300
+++ b/src/hello-dmx.c Sun Apr 20 21:55:44 2014 +0300
@@ -268,11 +268,11 @@
} else {
ret = '\n';
}
-
+
// return to START with response
console.state = START;
return '\n'; // XXX: required to delimit command reponses..
-
+
} else if (c == ' ' || c == '\t' || c == ',') {
// argument
if (console.state == CMD) {
@@ -290,7 +290,7 @@
}
}
- // printable
+ // printable
} else if (32 < c && c < 128) {
// process input char
if (console.state == START) {
@@ -311,7 +311,7 @@
// ignore
return ' ';
}
-
+
// reject
console.state = ERROR;
return ERROR;
@@ -335,7 +335,7 @@
// mainloop
char c = '>';
unsigned timeout = 8000; // 2Hz
-
+
// start
sei();
serial_write(c);
@@ -353,7 +353,7 @@
}
//led_off();
-
+
// output
update();
}