1
0
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:
Federico Fissore
2014-08-28 13:25:07 +02:00
parent b50cfb9f06
commit 98da28a3ce

View File

@ -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);
} }
} }