Browse Source

W5500 sunrise bugix ntp update

pull/1240/head
geronet1 2 years ago
parent
commit
8b49dc186f
  1. 2
      src/app.cpp

2
src/app.cpp

@ -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();

Loading…
Cancel
Save