fix newline
This commit is contained in:
@@ -194,8 +194,8 @@ void loop() {
|
||||
if (b != -1) {
|
||||
switch (b) {
|
||||
case '\n':
|
||||
if (bytesIn && aLine[bytesIn-1] == '\0') break;
|
||||
case '\r':
|
||||
if (b == '\n' && bytesIn && aLine[bytesIn-1] == '\0') break;
|
||||
Serial.println();
|
||||
aLine[bytesIn] = '\0';
|
||||
execute(aLine);
|
||||
|
||||
Reference in New Issue
Block a user