# HG changeset patch # User Tero Marttila # Date 1398020144 -10800 # Node ID 975a2dffdcdaef7cece1db659af0f49c022d11d8 # Parent ca10547ba9db2f75fb8727e93cefa41123f75eb0 whitespacefix diff -r ca10547ba9db -r 975a2dffdcda src/hello-dmx.c --- 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(); }