refactored printIntegerInBase to work without a buffer + minor cleanup

This commit is contained in:
Simen Svale Skogsrud
2011-06-03 21:50:02 +02:00
parent 69be1240be
commit f0843db46e
4 changed files with 15 additions and 13 deletions

View File

@ -72,7 +72,7 @@ uint8_t protocol_execute_line(char *line) {
void protocol_process()
{
char c;
while((c = serial_read()) != 0xff)
while((c = serial_read()) != SERIAL_NO_DATA)
{
if((char_counter > 0) && ((c == '\n') || (c == '\r'))) { // Line is complete. Then execute!
line[char_counter] = 0; // treminate string