Skip to content

Commit 33aa40e

Browse files
authored
Merge pull request #644 from LeeLeahy2/lu-changes
Move to common point between release_candidate and leeUpdates
2 parents c19908f + 679b95e commit 33aa40e

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ void stateUpdate()
111111
setMuxport(settings.dataPortChannel); // Return mux to original channel
112112

113113
bluetoothStart(); // Turn on Bluetooth with 'Rover' name
114-
ESPNOW_START(); // Start internal radio if enabled, otherwise disable
115114

116115
webServerStop(); // Stop the web config server
117116
baseCasterDisableOverride(); // Disable casting overrides
@@ -209,18 +208,7 @@ void stateUpdate()
209208
case (STATE_BASE_CASTER_NOT_STARTED): {
210209
baseCasterEnableOverride();
211210

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";
224212
changeState(STATE_BASE_NOT_STARTED);
225213
}
226214
break;
@@ -331,8 +319,6 @@ void stateUpdate()
331319
// Start the NTRIP server if requested
332320
RTK_MODE(RTK_MODE_BASE_FIXED);
333321

334-
ESPNOW_START(); // Start internal radio if enabled, otherwise disable
335-
336322
rtcmPacketsSent = 0; // Reset any previous number
337323
changeState(STATE_BASE_TEMP_TRANSMITTING);
338324
}
@@ -397,9 +383,6 @@ void stateUpdate()
397383
if (response == true)
398384
{
399385
baseStatusLedOn(); // Turn on the base/status LED
400-
401-
ESPNOW_START(); // Start internal radio if enabled, otherwise disable
402-
403386
changeState(STATE_BASE_FIXED_TRANSMITTING);
404387
}
405388
else
@@ -443,24 +426,12 @@ void stateUpdate()
443426
wifiEspNowOff(__FILE__, __LINE__); // We don't need ESP-NOW during web config
444427

445428
// 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-
459429
// Stop any running NTRIP Client or Server
460430
ntripClientStop(true); // Do not allocate new wifiClient
461431
for (int serverIndex = 0; serverIndex < NTRIP_SERVER_MAX; serverIndex++)
462432
ntripServerStop(serverIndex, true); // Do not allocate new wifiClient
463433

434+
wifiSoftApSsid = "RTK Config";
464435
webServerStart(); // Start the webserver state machine for web config
465436

466437
RTK_MODE(RTK_MODE_WEB_CONFIG);

Firmware/RTK_Everywhere/WebServer.ino

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,11 +836,6 @@ bool webServerAssignResources(int httpPort = 80)
836836

837837
//
838838
https: // github.com/espressif/arduino-esp32/blob/master/libraries/DNSServer/examples/CaptivePortal/CaptivePortal.ino
839-
if (settings.enableCaptivePortal == true)
840-
{
841-
dnsserver = new DNSServer;
842-
dnsserver->start();
843-
}
844839

845840
webServer = new WebServer(httpPort);
846841
if (!webServer)

0 commit comments

Comments
 (0)