File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -1060,15 +1060,18 @@ void updateLBand()
10601060 log_d (" ZED restarts: %d Time remaining before L-Band forced restart: %ds" , lbandRestarts, settings.lbandFixTimeout_seconds - ((millis () - lbandStartTimer) / 1000 ));
10611061 }
10621062
1063- if ( ( millis () - lbandStartTimer) > ( settings.lbandFixTimeout_seconds * 1000L ) )
1063+ if ( settings.lbandFixTimeout_seconds > 0 )
10641064 {
1065- lbandStartTimer = millis (); // Reset timer
1066- lbandRestarts++;
1065+ if ( (millis () - lbandStartTimer) > (settings.lbandFixTimeout_seconds * 1000L ))
1066+ {
1067+ lbandStartTimer = millis (); // Reset timer
1068+ lbandRestarts++;
10671069
1068- // Hotstart ZED to try to get RTK lock
1069- theGNSS.softwareResetGNSSOnly ();
1070+ // Hotstart ZED to try to get RTK lock
1071+ theGNSS.softwareResetGNSSOnly ();
10701072
1071- log_d (" Restarting ZED. Number of L-Band restarts: %d" , lbandRestarts);
1073+ log_d (" Restarting ZED. Number of L-Band restarts: %d" , lbandRestarts);
1074+ }
10721075 }
10731076 }
10741077 else if (carrSoln == 2 && lbandTimeToFix == 0 )
Original file line number Diff line number Diff line change @@ -669,7 +669,10 @@ void menuDebug()
669669 systemPrintf (" %s\r\n " , settings.enablePrintEthernetDiag ? " Enabled" : " Disabled" );
670670
671671 systemPrint (" 40) Set L-Band RTK Fix Timeout (seconds): " );
672- systemPrintln (settings.lbandFixTimeout_seconds );
672+ if (settings.lbandFixTimeout_seconds > 0 )
673+ systemPrintln (settings.lbandFixTimeout_seconds );
674+ else
675+ systemPrintln (" Disabled - no resets" );
673676
674677 systemPrintln (" t) Enter Test Screen" );
675678
@@ -920,11 +923,11 @@ void menuDebug()
920923 }
921924 else if (incoming == 40 )
922925 {
923- systemPrint (" Enter number of seconds in RTK float before hot-start (30 to 1200 ): " );
926+ systemPrint (" Enter number of seconds in RTK float before hot-start (0-disable to 3600 ): " );
924927 int timeout = getNumber (); // Returns EXIT, TIMEOUT, or long
925928 if ((timeout != INPUT_RESPONSE_GETNUMBER_EXIT) && (timeout != INPUT_RESPONSE_GETNUMBER_TIMEOUT))
926929 {
927- if (timeout < 30 || timeout > 1200 ) // Arbitrary 20 minute limit
930+ if (timeout < 0 || timeout > 3600 ) // Arbitrary 60 minute limit
928931 systemPrintln (" Error: Timeout out of range" );
929932 else
930933 settings.lbandFixTimeout_seconds = timeout; // Recorded to NVM and file at main menu exit
You can’t perform that action at this time.
0 commit comments