From c62ba705676e6dfbdfacb738152f14fa3938a9bf Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Thu, 8 Apr 2021 18:19:39 +0200 Subject: [PATCH] fix timesync timesource debug output --- src/timekeeper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timekeeper.cpp b/src/timekeeper.cpp index 48bc1e9a..45f0d153 100644 --- a/src/timekeeper.cpp +++ b/src/timekeeper.cpp @@ -117,8 +117,8 @@ void IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec, timeSource = mytimesource; // set global variable timesyncer.attach(TIME_SYNC_INTERVAL * 60, setTimeSyncIRQ); - ESP_LOGD(TAG, "[%0.3f] Timesync finished, time was set | source: %c", - _seconds(), timeSetSymbols[mytimesource]); + ESP_LOGD(TAG, "[%0.3f] Timesync finished, time was set | timesource=%d", + _seconds(), mytimesource); } else { timesyncer.attach(TIME_SYNC_INTERVAL_RETRY * 60, setTimeSyncIRQ); time_t unix_sec_at_compilation = compiledUTC();