This commit is contained in:
Brendan McDonnell 2021-05-23 12:01:25 -04:00
parent 8bcfd2e9ce
commit 296b0b6847
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ bool NTPClient::forceUpdate() {
// this is NTP time (seconds since Jan 1 1900):
unsigned long secsSince1900 = highWord << 16 | lowWord;
this->_currentEpoc = secsSince1900 - SEVENZYYEARS;
this->_currentEpoc = secsSince1900 - SEVENTYYEARS;
return true; // return true after successful update
}

View File

@ -4,7 +4,7 @@
#include <Udp.h>
#define SEVENZYYEARS 2208988800UL
#define SEVENTYYEARS 2208988800UL
#define NTP_PACKET_SIZE 48
#define NTP_DEFAULT_LOCAL_PORT 1337