mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
show ntp connect in log
This commit is contained in:
@@ -2001,8 +2001,12 @@ 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_ && !b) {
|
if (b != ntp_connected_) {
|
||||||
LOG_WARNING("NTP disconnected"); // if turned off report it
|
if (b) {
|
||||||
|
LOG_INFO("NTP connected");
|
||||||
|
} else {
|
||||||
|
LOG_WARNING("NTP disconnected"); // if turned off report it
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ntp_connected_ = b;
|
ntp_connected_ = b;
|
||||||
|
|||||||
Reference in New Issue
Block a user