From 98da28a3ce55563880ff5a9c5a09a056e7e5143d Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Thu, 28 Aug 2014 13:25:07 +0200 Subject: [PATCH] Bridge: slowing down ConsoleRead a bit to keep the python side of the Bridge from consuming 100% of the CPU --- libraries/Bridge/examples/ConsoleRead/ConsoleRead.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/Bridge/examples/ConsoleRead/ConsoleRead.ino b/libraries/Bridge/examples/ConsoleRead/ConsoleRead.ino index 77846d896..b9a8dd7ce 100644 --- a/libraries/Bridge/examples/ConsoleRead/ConsoleRead.ino +++ b/libraries/Bridge/examples/ConsoleRead/ConsoleRead.ino @@ -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); } }