timeout 20 seconds

pull/177/head
alanbjohnston 4 years ago committed by GitHub
parent a93341ba41
commit cfa24efd83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3800,7 +3800,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) < 10000)) {
while ((input != '\n') && (input!= '\r') && (i < 128) && ((millis() - elapsed_time) < 20000)) {
if (Serial.available() > 0) {
input = Serial.read();
if ((input != '\n') && (input!= '\r')) {

Loading…
Cancel
Save

Powered by TurnKey Linux.