From dc1094b6ba187222b10b12cb9ef22dfa9a5c863e Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 10 May 2025 13:36:40 +0200 Subject: [PATCH] show ntp connect in log --- src/core/system.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index 22f5c03be..253700003 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -2001,8 +2001,12 @@ std::string System::reset_reason(uint8_t cpu) const { // set NTP status void System::ntp_connected(bool b) { - if (b != ntp_connected_ && !b) { - LOG_WARNING("NTP disconnected"); // if turned off report it + if (b != ntp_connected_) { + if (b) { + LOG_INFO("NTP connected"); + } else { + LOG_WARNING("NTP disconnected"); // if turned off report it + } } ntp_connected_ = b;