@@ -139,6 +139,7 @@ void updateSystemState()
139139
140140 i2cGNSS.enableRTCMmessage (UBX_RTCM_1230, COM_PORT_UART2, 0 ); // Disable RTCM sentences
141141
142+ stopWebServer ();
142143 stopWiFi (); // Turn off WiFi and release all resources
143144 startBluetooth (); // Turn on Bluetooth with 'Rover' name
144145 startUART2Tasks (); // Start monitoring the UART1 from ZED for NMEA and UBX data (enables logging)
@@ -152,7 +153,7 @@ void updateSystemState()
152153 if (settings.enableNtripClient == true && ntripClientAttempted == false )
153154 {
154155 // Turn off Bluetooth and turn on WiFi
155- // stopBluetooth();
156+ stopBluetooth ();
156157 startWiFi (settings.ntripClient_wifiSSID , settings.ntripClient_wifiPW );
157158 wifiStartTime = millis ();
158159
@@ -489,6 +490,7 @@ void updateSystemState()
489490 displayBaseStart (0 ); // Show 'Base'
490491
491492 // Stop all WiFi and BT. Re-enable in each specific base start state.
493+ stopWebServer ();
492494 stopWiFi ();
493495 stopBluetooth ();
494496 startUART2Tasks (); // Start monitoring the UART1 from ZED for NMEA and UBX data (enables logging)
@@ -1051,8 +1053,9 @@ void updateSystemState()
10511053
10521054 displayWiFiConfigNotStarted (); // Display immediately during SD cluster pause
10531055
1054- // Start in AP mode and show config html page
1055- startConfigAP ();
1056+ stopBluetooth ();
1057+ stopUART2Tasks (); // Delete F9 serial tasks if running
1058+ startWebServer (); // Start in AP mode and show config html page
10561059
10571060 changeState (STATE_WIFI_CONFIG);
10581061 }
0 commit comments