diff --git a/src/SNTP.c b/src/SNTP.c index a079af7..380a487 100644 --- a/src/SNTP.c +++ b/src/SNTP.c @@ -137,9 +137,10 @@ void StartSystemTimer(void) void SetSystemTime(struct tm *time, const char* source) { time_t t = mktime(time); - ESP_LOGI("SNTP","Setting time: %s from thq source %s", asctime(time), source); + ESP_LOGI("SNTP","Setting time: %s from the source %s", asctime(time), source); struct timeval now = { .tv_sec = t }; settimeofday(&now, NULL); + TimeObtainHandler(&now); } void SecondTickSystem(void *param)