update to fix ntp without wifi

This commit is contained in:
Ricardo Guzman (Richonguzman) 2025-12-03 12:31:36 -03:00
parent 984e9f9561
commit 5370850ae1

View file

@ -45,7 +45,7 @@ namespace NTP_Utils {
}
String getFormatedTime() {
if (Config.digi.ecoMode == 0) return timeClient->getFormattedTime();
if (WiFi.status() == WL_CONNECTED && Config.digi.ecoMode == 0) return timeClient->getFormattedTime();
return "DigiEcoMode Active";
}