From 4648330a7febbd7b7f4d28b75a0256b25b751532 Mon Sep 17 00:00:00 2001 From: Arturo Guadalupi Date: Thu, 21 May 2015 09:42:06 +0200 Subject: [PATCH] Fix for serialEvent example In the example is stated that the function is run between one loop and the next, but actually the call to the function was missing. The comment also state that the response can be delayed using a delay in the loop,so I think that the way it should be is so by only adding a call to the function serialEvent as first operation in the loop. I so added this call. --- .../shared/examples/04.Communication/SerialEvent/SerialEvent.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino b/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino index cbaaf88f3..be3c4d0b5 100644 --- a/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino +++ b/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino @@ -28,6 +28,7 @@ void setup() { } void loop() { + serialEvent(); //call the function // print the string when a newline arrives: if (stringComplete) { Serial.println(inputString);