From b43fd46e272e077faf46d7f973decab07de9a01a Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 28 Feb 2020 14:06:31 +0100 Subject: [PATCH] NTP debug text change --- src/MyESP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MyESP.cpp b/src/MyESP.cpp index 1582ccac0..3327da461 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -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