mirror of
https://github.com/dexterbg/Twizy-Cfg.git
synced 2024-11-18 11:53:59 +00:00
Allow CRLF terminal configuration
This commit is contained in:
parent
883bbde7e5
commit
5686de5daa
1 changed files with 2 additions and 4 deletions
|
@ -943,8 +943,8 @@ void serialEvent() {
|
|||
|
||||
while (Serial.available()) {
|
||||
char inChar = (char)Serial.read();
|
||||
if (inChar == '\n') {
|
||||
stringComplete = true;
|
||||
if (inChar == '\r' || inChar == '\n') {
|
||||
stringComplete = (inputString.length() > 0);
|
||||
}
|
||||
else if (inChar >= 32) {
|
||||
inputString += inChar;
|
||||
|
@ -952,5 +952,3 @@ void serialEvent() {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue