mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
NTP log text
This commit is contained in:
@@ -1557,8 +1557,8 @@ std::string System::reset_reason(uint8_t cpu) const {
|
||||
|
||||
// set NTP status
|
||||
void System::ntp_connected(bool b) {
|
||||
if (b != ntp_connected_) {
|
||||
LOG_INFO(b ? "NTP connected" : "NTP disconnected"); // if changed report it
|
||||
if (b != ntp_connected_ && !b) {
|
||||
LOG_WARNING("NTP disconnected"); // if turned off report it
|
||||
}
|
||||
|
||||
ntp_connected_ = b;
|
||||
|
||||
Reference in New Issue
Block a user