1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01: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
name += c; // append the read char from Console to the name string
}
} else {
delay(100);
}
}