Skip to content

Commit a441447

Browse files
committed
WiFi: Move wifiResetTimeout
1 parent 8f55181 commit a441447

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,17 @@ void wifiPromiscuousRxHandler(void *buf, wifi_promiscuous_pkt_type_t type)
611611
packetRSSI = ppkt->rx_ctrl.rssi;
612612
}
613613

614+
//*********************************************************************
615+
// Set WiFi timeout back to zero
616+
// Useful if other things (such as a successful ethernet connection) need
617+
// to reset wifi timeout
618+
void wifiResetTimeout()
619+
{
620+
wifiStartTimeout = 0;
621+
if (settings.debugWifiState == true)
622+
systemPrintln("WiFi: Start timeout reset to zero");
623+
}
624+
614625
//*********************************************************************
615626
// Constructor
616627
// Inputs:
@@ -3117,17 +3128,6 @@ bool wifiStart()
31173128
return (wifiStatus == WL_CONNECTED);
31183129
}
31193130

3120-
//----------------------------------------
3121-
// Set WiFi timeout back to zero
3122-
// Useful if other things (such as a successful ethernet connection) need to reset wifi timeout
3123-
//----------------------------------------
3124-
void wifiResetTimeout()
3125-
{
3126-
wifiStartTimeout = 0;
3127-
if (settings.debugWifiState == true)
3128-
systemPrintln("WiFi: Start timeout reset to zero");
3129-
}
3130-
31313131
//----------------------------------------
31323132
//----------------------------------------
31333133
uint32_t wifiGetStartTimeout()

0 commit comments

Comments
 (0)