Skip to content

Commit b173f16

Browse files
committed
WiFi: Use new restart based upon wifiStationUpdate
1 parent a237733 commit b173f16

File tree

3 files changed

+3
-258
lines changed

3 files changed

+3
-258
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ void wifiDisplaySoftApStatus() {}
210210
bool wifiEspNowOff(const char * fileName, uint32_t lineNumber) {return true;}
211211
bool wifiEspNowOn(const char * fileName, uint32_t lineNumber) {return false;}
212212
void wifiEspNowSetChannel(WIFI_CHANNEL_t channel) {}
213-
uint32_t wifiGetStartTimeout() {return 0;}
214213
int wifiNetworkCount() {return 0;}
215-
void wifiResetThrottleTimeout() {}
216214
void wifiResetTimeout() {}
217215
IPAddress wifiSoftApGetIpAddress() {return IPAddress((uint32_t)0);}
218216
const char * wifiSoftApGetSsid() {return "";}

Firmware/RTK_Everywhere/Network.ino

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,18 +2314,8 @@ void networkUpdate()
23142314

23152315
// Handle the network lost internet event
23162316
if (networkEventInternetLost[index])
2317-
{
23182317
networkInterfaceInternetConnectionLost(index);
23192318

2320-
// Attempt to restart WiFi
2321-
if ((index == NETWORK_WIFI_STATION) && (networkIsHighestPriority(index)))
2322-
{
2323-
if (networkIsStarted(index))
2324-
networkStop(index, settings.debugWifiState, __FILE__, __LINE__);
2325-
networkStart(index, settings.debugWifiState, __FILE__, __LINE__);
2326-
}
2327-
}
2328-
23292319
// Handle the network stop event
23302320
if (networkEventStop[index])
23312321
networkStop(index, settings.debugNetworkLayer, __FILE__, __LINE__);
@@ -2360,6 +2350,9 @@ void networkUpdate()
23602350
}
23612351
}
23622352

2353+
// Update the WiFi state
2354+
wifiStationUpdate();
2355+
23632356
// Update the network services
23642357
// Start or stop mDNS
23652358
if (networkMdnsRequests != networkMdnsRunning)

0 commit comments

Comments
 (0)