@@ -208,18 +208,7 @@ void stateUpdate()
208
208
case (STATE_BASE_CASTER_NOT_STARTED): {
209
209
baseCasterEnableOverride ();
210
210
211
- #ifdef COMPILE_WIFI
212
- // If the AP is already running, check that the name is correct
213
- if ((WiFi.getMode () == WIFI_AP) || (WiFi.getMode () == WIFI_AP_STA))
214
- {
215
- if (strcmp (WiFi.softAPSSID ().c_str (), " RTK Caster" ) != 0 )
216
- {
217
- // The AP name cannot be changed while it is running. WiFi must be restarted.
218
- restartWiFi = true ; // Tell network layer to restart WiFi
219
- }
220
- }
221
- #endif // COMPILE_WIFI
222
-
211
+ wifiSoftApSsid = " RTK Caster" ;
223
212
changeState (STATE_BASE_NOT_STARTED);
224
213
}
225
214
break ;
@@ -437,24 +426,12 @@ void stateUpdate()
437
426
wifiEspNowOff (__FILE__, __LINE__); // We don't need ESP-NOW during web config
438
427
439
428
// The GNSS UART task is left running to allow GNSS receivers to obtain LLh data for 1Hz page updates
440
-
441
- #ifdef COMPILE_WIFI
442
- // If the AP is already running, check that the name is correct
443
- if ((WiFi.getMode () == WIFI_AP) || (WiFi.getMode () == WIFI_AP_STA))
444
- {
445
- if (strcmp (WiFi.softAPSSID ().c_str (), " RTK Config" ) != 0 )
446
- {
447
- // The AP name cannot be changed while it is running. WiFi must be restarted.
448
- restartWiFi = true ; // Tell network layer to restart WiFi
449
- }
450
- }
451
- #endif // COMPILE_WIFI
452
-
453
429
// Stop any running NTRIP Client or Server
454
430
ntripClientStop (true ); // Do not allocate new wifiClient
455
431
for (int serverIndex = 0 ; serverIndex < NTRIP_SERVER_MAX; serverIndex++)
456
432
ntripServerStop (serverIndex, true ); // Do not allocate new wifiClient
457
433
434
+ wifiSoftApSsid = " RTK Config" ;
458
435
webServerStart (); // Start the webserver state machine for web config
459
436
460
437
RTK_MODE (RTK_MODE_WEB_CONFIG);
0 commit comments