Switched from NTPClient to lwIPs internal SNTP client.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This has the advantage of being able to set DST automatically.
This commit is contained in:
@ -9,7 +9,8 @@ void TimerEffect::loop(uint16_t ms) {
|
||||
|
||||
CRGB bg_color(0x000000);
|
||||
CRGB fg_color(0xCCCCCC);
|
||||
unsigned long now = ntpClient.getEpochTime() - NTP_OFFSET;
|
||||
time_t now;
|
||||
time(&now);
|
||||
long diff = timer - now;
|
||||
window->clear(&bg_color);
|
||||
if (diff < 0 && (now & 1)==0) return;
|
||||
|
Reference in New Issue
Block a user