File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ void ntripClientUpdate()
318318 return ;
319319 }
320320
321+ if (wifiInConfigMode ()) return ; // Do not service NTRIP during WiFi config
322+
321323#ifdef COMPILE_WIFI
322324 // Periodically display the NTRIP client state
323325 if (settings.enablePrintNtripClientState && ((millis () - lastNtripClientState) > 15000 ))
Original file line number Diff line number Diff line change @@ -337,6 +337,8 @@ void ntripServerUpdate()
337337 return ;
338338 }
339339
340+ if (wifiInConfigMode ()) return ; // Do not service NTRIP during WiFi config
341+
340342#ifdef COMPILE_WIFI
341343 // Periodically display the NTRIP server state
342344 if (settings.enablePrintNtripServerState && ((millis () - ntripServerStateLastDisplayed) > 15000 ))
Original file line number Diff line number Diff line change @@ -693,3 +693,11 @@ void wifiPrintNetworkInfo()
693693 systemPrintln ();
694694#endif
695695}
696+
697+ // Returns true if unit is in config mode
698+ // Used to disallow services (NTRIP, TCP, etc) from updating
699+ bool wifiInConfigMode ()
700+ {
701+ if (systemState >= STATE_WIFI_CONFIG_NOT_STARTED && systemState <= STATE_WIFI_CONFIG) return true ;
702+ return false ;
703+ }
You can’t perform that action at this time.
0 commit comments