diff --git a/main/ntp.cpp b/main/ntp.cpp index 4bf6b7255cd34bce045ebdf990082bc67c0e9846..ad95456028dd563a3d4661590080ef1b185858e9 100644 --- a/main/ntp.cpp +++ b/main/ntp.cpp @@ -20,7 +20,7 @@ typedef struct { static ntpd_parameter_t parameter; -void ntpd(void *ignored) { +void ntp_task(void *ignored) { time_t now = 0; struct tm timeinfo = { 0 }; @@ -45,7 +45,7 @@ namespace qthing { void enable_ntp(std::string address, std::string timezone, qthing::ntp_callback_t callback) { if (parameter.started) { - ESP_LOGE("NTPD", "service already enabled"); + ESP_LOGE("NTP", "service already enabled"); return; } @@ -54,6 +54,6 @@ namespace qthing { setenv("TZ", (char *)timezone.c_str(), 1); tzset(); - xTaskCreate(ntpd, "ntpd", 10000, NULL, 1, NULL); + xTaskCreate(ntp_task, "ntp", 10000, NULL, 1, NULL); } }