8000 Fix for serialEvent example · arduino/arduino-examples@0413144 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0413144

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 341986c commit 0413144

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/04.Communication/SerialEvent/SerialEvent.ino

Lines changed: 1 addition & 0 deletions
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)
0