Skip to content
Snippets Groups Projects
Commit bbcb1720 authored by Jens Nolte's avatar Jens Nolte
Browse files

Properly clear ntp timeinfo struct

parent 0056b79e
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,8 @@ static ntpd_parameter_t parameter; ...@@ -24,7 +24,8 @@ static ntpd_parameter_t parameter;
void ntp_task(void *ignored) { void ntp_task(void *ignored) {
time_t now = 0; time_t now = 0;
struct tm timeinfo = { 0 }; struct tm timeinfo;
memset(&timeinfo, 0, sizeof(tm));
ESP_LOGI(TAG, "Configuring ntp"); ESP_LOGI(TAG, "Configuring ntp");
sntp_setoperatingmode(SNTP_OPMODE_POLL); sntp_setoperatingmode(SNTP_OPMODE_POLL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment