mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Reduce millis usage in Wifi monitor
This commit is contained in:
parent
03860b17a8
commit
848d347e12
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ void wifi_monitor() {
|
|||
#endif
|
||||
// Try WiFi.reconnect() if it was successfully connected at least once
|
||||
if (hasConnectedBefore) {
|
||||
lastReconnectAttempt = millis(); // Reset reconnection attempt timer
|
||||
lastReconnectAttempt = currentMillis; // Reset reconnection attempt timer
|
||||
#ifdef DEBUG_LOG
|
||||
logging.println("Wi-Fi reconnect attempt...");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue