This commit is contained in:
e2002
2025-08-27 09:49:05 +03:00
parent a5f91155b5
commit 7c49d194f9
6 changed files with 15 additions and 21 deletions

View File

@@ -177,20 +177,14 @@ void TimeKeeper::_doAfterWait(){
void TimeKeeper::_upClock(){
#if RTCSUPPORTED
if(config.isRTCFound()){
rtc.getTime(&network.timeinfo);
if(network.timeinfo.tm_year>100){
mktime(&network.timeinfo);
if(display.ready()) display.putRequest(CLOCK);
}
}
if(config.isRTCFound()) rtc.getTime(&network.timeinfo);
#else
if(network.timeinfo.tm_year>100 || network.status == SDREADY) {
network.timeinfo.tm_sec++;
mktime(&network.timeinfo);
if(display.ready()) display.putRequest(CLOCK);
}
#endif
if(display.ready()) display.putRequest(CLOCK);
}
void TimeKeeper::_upScreensaver(){