merged master

This commit is contained in:
Simen Svale Skogsrud
2011-01-31 19:42:56 +01:00
9 changed files with 70 additions and 67 deletions

View File

@@ -49,7 +49,7 @@ void sp_process()
char c;
while((c = serialRead()) != -1)
{
if((c == '\n')) { // Line is complete. Then execute!
if((char_counter > 0) && ((c == '\n') || (c == '\r'))) { // Line is complete. Then execute!
line[char_counter] = 0;
printString(line); printPgmString(PSTR("\r\n"));
gc_execute_line(line);