Skip to content

Commit

Permalink
40 second get serial prompt timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbjohnston authored Apr 15, 2023
1 parent 90b90f3 commit 68da86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cubesatsim/cubesatsim.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 68da86c

Please sign in to comment.