Skip to content

Commit 4648330

Browse files
committed
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.
1 parent 67b65dd commit 4648330

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ void setup() {
2828
}
2929

3030
void loop() {
31+
serialEvent(); //call the function
3132
// print the string when a newline arrives:
3233
if (stringComplete) {
3334
Serial.println(inputString);

0 commit comments

Comments
 (0)