Skip to content

Commit 98da28a

Browse files
author
Federico Fissore
committed
Bridge: slowing down ConsoleRead a bit to keep the python side of the Bridge from consuming 100% of the CPU
1 parent b50cfb9 commit 98da28a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/Bridge/examples/ConsoleRead/ConsoleRead.ino

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ void loop() {
5353
else { // if the buffer is empty Cosole.read() returns -1
5454
name += c; // append the read char from Console to the name string
5555
}
56+
} else {
57+
delay(100);
5658
}
5759
}
5860

0 commit comments

Comments
 (0)