* fix NTP issues #1440 #1497 #1499
This commit is contained in:
lumapu 2024-03-17 00:42:58 +01:00
parent 6af07f5a33
commit 4fc61dc01f
6 changed files with 33 additions and 34 deletions

View file

@ -299,7 +299,7 @@ class app : public IApp, public ah::Scheduler {
#if defined(ETHERNET)
mEth.updateNtpTime();
#else /* defined(ETHERNET) */
mWifi.getNtpTime();
mWifi.updateNtpTime();
#endif /* defined(ETHERNET) */
}
else
@ -389,10 +389,8 @@ class app : public IApp, public ah::Scheduler {
}
void tickNtpUpdate(void);
#if defined(ETHERNET)
void onNtpUpdate(bool gotTime);
bool mNtpReceived = false;
#endif /* defined(ETHERNET) */
void updateNtp(void);
void triggerTickSend() override {