NTP debug text change

This commit is contained in:
Paul
2020-02-28 14:06:31 +01:00
parent b7dad9d9d9
commit b43fd46e27

View File

@@ -1546,9 +1546,9 @@ void MyESP::showSystemStats() {
myDebug_P(PSTR(" [MQTT] is disconnected"));
}
if (_have_ntp_time) {
if ((_have_ntp_time) && (NTP.tcr->abbrev != nullptr)) {
uint32_t real_time = getSystemTime();
myDebug_P(PSTR(" [NTP] Local Time is %02d:%02d:%02d %s (%d)"), to_hour(real_time), to_minute(real_time), to_second(real_time), NTP.tcr->abbrev, real_time);
myDebug_P(PSTR(" [NTP] Local Time is %02d:%02d:%02d %s"), to_hour(real_time), to_minute(real_time), to_second(real_time), NTP.tcr->abbrev);
}
#ifdef CRASH