From 6be36f18ad575139964c51a268f978ad63d44af8 Mon Sep 17 00:00:00 2001
From: Jochen Vothknecht <jochen3120@gmail.com>
Date: Sat, 22 Sep 2018 21:59:22 +0200
Subject: [PATCH] renaming task

---
 main/ntp.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main/ntp.cpp b/main/ntp.cpp
index 4bf6b72..ad95456 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);
     }
 }
-- 
GitLab