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