Reduce millis usage in Wifi monitor

This commit is contained in:
Daniel Öster 2025-05-11 21:27:49 +03:00
parent 03860b17a8
commit 848d347e12

View file

@ -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