NTP log text

This commit is contained in:
proddy
2024-02-13 10:56:50 +01:00
parent 644907e58b
commit 295b90f49c

View File

@@ -1557,8 +1557,8 @@ std::string System::reset_reason(uint8_t cpu) const {
// set NTP status // set NTP status
void System::ntp_connected(bool b) { void System::ntp_connected(bool b) {
if (b != ntp_connected_) { if (b != ntp_connected_ && !b) {
LOG_INFO(b ? "NTP connected" : "NTP disconnected"); // if changed report it LOG_WARNING("NTP disconnected"); // if turned off report it
} }
ntp_connected_ = b; ntp_connected_ = b;