40 second get serial prompt timeout

pull/267/head v0.41
alanbjohnston 3 years ago committed by GitHub
parent 90b90f3fb8
commit 68da86c2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4915,7 +4915,7 @@ void get_serial_string() {
int input = 0;
int i = 0;
unsigned int elapsed_time = (unsigned int) millis();
while ((input != '\n') && (input!= '\r') && (i < 128) && ((millis() - elapsed_time) < 20000)) {
while ((input != '\n') && (input!= '\r') && (i < 128) && ((millis() - elapsed_time) < 40000)) { // was 20
if (Serial.available() > 0) {
input = Serial.read();
if ((input != '\n') && (input!= '\r')) {

Loading…
Cancel
Save

Powered by TurnKey Linux.