Timeline for Arduino Uno "if" statement is ignored in code and halts execution when using Serial.ReadString()
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 4, 2018 at 23:36 | history | edited | Chris Stratton | CC BY-SA 3.0 |
added 459 characters in body
|
| Jan 4, 2018 at 22:22 | vote | accept | avc | ||
| Jan 4, 2018 at 22:22 | vote | accept | avc | ||
| Jan 4, 2018 at 22:22 | |||||
| Jan 4, 2018 at 18:31 | comment | added | Chris Stratton | No, don't wipe your install, rather see the documentation for parseInt and what it says it does if input times out with no number entered. | |
| Jan 4, 2018 at 18:03 | comment | added | avc | Thank you Chris, the if-else statements have changed on my second revision of the code, since the serial output doesn't have the blank line anymore. Do you think deleting everything from my Arduino folder under the Windows user folder would help? The newline or carriage return can be causing the 0 character to show up automatically on the serial output on my integer code. | |
| Jan 4, 2018 at 17:56 | history | answered | Chris Stratton | CC BY-SA 3.0 |