Fixed library error

This commit is contained in:
Matthias Mitscherlich
2023-01-20 19:09:10 +01:00
parent 03d0c977d4
commit c230138e27
6 changed files with 34 additions and 16 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ 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();
esp_sntp_setoperatingmode(SNTP_OPMODE_POLL);
esp_sntp_setoperatingmode(ESP_SNTP_OPMODE_POLL);
esp_sntp_setservername(0, "pool.ntp.org");
esp_sntp_init();
}