Skip to content

Commit 214a356

Browse files
committed
Fix build with COMPILE_WIFI commented out
1 parent 40428b1 commit 214a356

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ uint32_t wifiGetStartTimeout() {return 0;}
207207
int wifiNetworkCount() {return 0;}
208208
void wifiResetThrottleTimeout() {}
209209
void wifiResetTimeout() {}
210-
#define WIFI_SOFT_AP_RUNNING() {return false;}
210+
#define WIFI_SOFT_AP_RUNNING() false
211211
bool wifiStart() {return false;}
212212
bool wifiStationIsRunning() {return false;}
213213
#define WIFI_STOP() {}

Firmware/RTK_Everywhere/Network.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ NETWORK_POLL_SEQUENCE *networkSequence[NETWORK_OFFLINE];
131131

132132
NetMask_t networkMdnsRunning; // Non-zero when mDNS is running
133133

134-
extern bool restartWiFi; // From WiFi.ino
135-
136134
//----------------------------------------
137135
// Menu for configuring TCP/UDP interfaces
138136
//----------------------------------------

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ RTK_WIFI wifi(false);
317317
}
318318
#endif // COMPILE_WIFI
319319

320+
bool restartWiFi = false; // Restart WiFi if user changes anything
321+
320322
#define MQTT_CLIENT_STOP(shutdown) \
321323
{ \
322324
if (settings.debugNetworkLayer || settings.debugMqttClientState) \
@@ -1503,7 +1505,7 @@ void logUpdate()
15031505
if (logFileSize > 0)
15041506
{
15051507
lastFileReport = millis();
1506-
1508+
15071509
if (settings.enablePrintLogFileStatus)
15081510
{
15091511
systemPrintf("Log file size: %lld", logFileSize);

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,6 @@ const int wifiStartNamesEntries = sizeof(wifiStartNames) / sizeof(wifiStartNames
412412
const char * wifiSoftApSsid = "RTK Config";
413413
const char * wifiSoftApPassword = nullptr;
414414

415-
//****************************************
416-
// Globals
417-
//****************************************
418-
419-
bool restartWiFi = false; // Restart WiFi if user changes anything
420-
421415
//****************************************
422416
// Locals
423417
//****************************************

0 commit comments

Comments
 (0)