mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Bridge: slowing down ConsoleRead a bit to keep the python side of the Bridge from consuming 100% of the CPU
This commit is contained in:
@ -53,6 +53,8 @@ void loop() {
|
|||||||
else { // if the buffer is empty Cosole.read() returns -1
|
else { // if the buffer is empty Cosole.read() returns -1
|
||||||
name += c; // append the read char from Console to the name string
|
name += c; // append the read char from Console to the name string
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
delay(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user