Skip to content

Commit 68da86c

Browse files
40 second get serial prompt timeout
1 parent 90b90f3 commit 68da86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cubesatsim/cubesatsim.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4915,7 +4915,7 @@ void get_serial_string() {
49154915
int input = 0;
49164916
int i = 0;
49174917
unsigned int elapsed_time = (unsigned int) millis();
4918-
while ((input != '\n') && (input!= '\r') && (i < 128) && ((millis() - elapsed_time) < 20000)) {
4918+
while ((input != '\n') && (input!= '\r') && (i < 128) && ((millis() - elapsed_time) < 40000)) { // was 20
49194919
if (Serial.available() > 0) {
49204920
input = Serial.read();
49214921
if ((input != '\n') && (input!= '\r')) {

0 commit comments

Comments
 (0)