| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d1bd145 commit 531dbc2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,7 +53,7 @@ boolean mouseOverRect() { // Test if mouse is over square | |||
| 53 | 53 | } | |
| 54 | 54 | ||
| 55 | 55 | void loop() { | |
| 56 | - if (Serial.available()) { // If data is available to read, | ||
| 56 | + while (Serial.available()) { // If data is available to read, | ||
| 57 | 57 | val = Serial.read(); // read it and store it in val | |
| 58 | 58 | } | |
| 59 | 59 | if (val == 'H') { // If H was received | |
| Back | FazBrowse Home | New Git URL |
0 commit comments