Skip to content

Commit de621fd

Browse files
committed
Add wifiGetStartTimeout()
1 parent 1431f37 commit de621fd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ void menuWiFi() {systemPrintln("**WiFi not compiled**");}
171171
bool wifiConnect(bool startWiFiStation, bool startWiFiAP, unsigned long timeout) {return false;}
172172
int wifiNetworkCount() {return 0;}
173173
bool wifiIsRunning() {return false;}
174+
uint32_t wifiGetStartTimeout() {return 0;}
174175
#define WIFI_STOP() {}
175176

176177
#endif // COMPILE_WIFI

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,13 @@ void wifiResetTimeout()
576576
systemPrintln("WiFi: Start timeout reset to zero");
577577
}
578578

579+
//----------------------------------------
580+
//----------------------------------------
581+
uint32_t wifiGetStartTimeout()
582+
{
583+
return (wifiStartTimeout);
584+
}
585+
579586
//----------------------------------------
580587
// Reset the last WiFi start attempt
581588
// Useful when WiFi settings have changed

0 commit comments

Comments
 (0)