Switched from NTPClient to lwIPs internal SNTP client.
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:
2020-03-29 18:08:54 +02:00
parent e2a56d7c29
commit 47812de405
10 changed files with 64 additions and 36 deletions

View File

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