* fixed NTP update and sunrise calculation #1240 #886
This commit is contained in:
lumapu 2023-12-07 22:01:49 +01:00
parent 14b0fbbd68
commit c771c2e5df
3 changed files with 5 additions and 5 deletions

View file

@ -201,7 +201,8 @@ void app::updateNtp(void) {
void app::tickNtpUpdate(void) {
uint32_t nxtTrig = 5; // default: check again in 5 sec
#if defined(ETHERNET)
bool isOK = mEth.updateNtpTime();
bool isOK = (mTimestamp != 0);
mEth.updateNtpTime();
#else
bool isOK = mWifi.getNtpTime();
#endif