fixed depecated lib

This commit is contained in:
Matthias Mitscherlich
2023-01-20 17:23:06 +01:00
parent f398219907
commit 03d0c977d4
4 changed files with 122 additions and 7 deletions
+3 -3
View File
@@ -61,9 +61,9 @@ Clock::Clock(Clock::mode mode)
// Start NTP
setenv("TZ", "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00", 1);
tzset();
sntp_setoperatingmode(SNTP_OPMODE_POLL);
sntp_setservername(0, "pool.ntp.org");
sntp_init();
esp_sntp_setoperatingmode(SNTP_OPMODE_POLL);
esp_sntp_setservername(0, "pool.ntp.org");
esp_sntp_init();
}
void Clock::generateWordlist(list<string>* wordlist)