@@ -111,7 +111,6 @@ void stateUpdate()
111
111
setMuxport (settings.dataPortChannel ); // Return mux to original channel
112
112
113
113
bluetoothStart (); // Turn on Bluetooth with 'Rover' name
114
- ESPNOW_START (); // Start internal radio if enabled, otherwise disable
115
114
116
115
webServerStop (); // Stop the web config server
117
116
baseCasterDisableOverride (); // Disable casting overrides
@@ -209,18 +208,7 @@ void stateUpdate()
209
208
case (STATE_BASE_CASTER_NOT_STARTED): {
210
209
baseCasterEnableOverride ();
211
210
212
- #ifdef COMPILE_WIFI
213
- // If the AP is already running, check that the name is correct
214
- if ((WiFi.getMode () == WIFI_AP) || (WiFi.getMode () == WIFI_AP_STA))
215
- {
216
- if (strcmp (WiFi.softAPSSID ().c_str (), " RTK Caster" ) != 0 )
217
- {
218
- // The AP name cannot be changed while it is running. WiFi must be restarted.
219
- restartWiFi = true ; // Tell network layer to restart WiFi
220
- }
221
- }
222
- #endif // COMPILE_WIFI
223
-
211
+ wifiSoftApSsid = " RTK Caster" ;
224
212
changeState (STATE_BASE_NOT_STARTED);
225
213
}
226
214
break ;
@@ -331,8 +319,6 @@ void stateUpdate()
331
319
// Start the NTRIP server if requested
332
320
RTK_MODE (RTK_MODE_BASE_FIXED);
333
321
334
- ESPNOW_START (); // Start internal radio if enabled, otherwise disable
335
-
336
322
rtcmPacketsSent = 0 ; // Reset any previous number
337
323
changeState (STATE_BASE_TEMP_TRANSMITTING);
338
324
}
@@ -397,9 +383,6 @@ void stateUpdate()
397
383
if (response == true )
398
384
{
399
385
baseStatusLedOn (); // Turn on the base/status LED
400
-
401
- ESPNOW_START (); // Start internal radio if enabled, otherwise disable
402
-
403
386
changeState (STATE_BASE_FIXED_TRANSMITTING);
404
387
}
405
388
else
@@ -443,24 +426,12 @@ void stateUpdate()
443
426
wifiEspNowOff (__FILE__, __LINE__); // We don't need ESP-NOW during web config
444
427
445
428
// The GNSS UART task is left running to allow GNSS receivers to obtain LLh data for 1Hz page updates
446
-
447
- #ifdef COMPILE_WIFI
448
- // If the AP is already running, check that the name is correct
449
- if ((WiFi.getMode () == WIFI_AP) || (WiFi.getMode () == WIFI_AP_STA))
450
- {
451
- if (strcmp (WiFi.softAPSSID ().c_str (), " RTK Config" ) != 0 )
452
- {
453
- // The AP name cannot be changed while it is running. WiFi must be restarted.
454
- restartWiFi = true ; // Tell network layer to restart WiFi
455
- }
456
- }
457
- #endif // COMPILE_WIFI
458
-
459
429
// Stop any running NTRIP Client or Server
460
430
ntripClientStop (true ); // Do not allocate new wifiClient
461
431
for (int serverIndex = 0 ; serverIndex < NTRIP_SERVER_MAX; serverIndex++)
462
432
ntripServerStop (serverIndex, true ); // Do not allocate new wifiClient
463
433
434
+ wifiSoftApSsid = " RTK Config" ;
464
435
webServerStart (); // Start the webserver state machine for web config
465
436
466
437
RTK_MODE (RTK_MODE_WEB_CONFIG);
0 commit comments