mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-23 11:17:11 +02:00
parent
14b0fbbd68
commit
c771c2e5df
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue