From b75e1ea7d6c4b57b99bf0335054bfc1191a2bdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 19 Mar 2018 07:14:19 +0100 Subject: [PATCH] Do not show empty time strings (#691) --- code/espurna/ntp.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/espurna/ntp.ino b/code/espurna/ntp.ino index 05114fe6..c0482511 100644 --- a/code/espurna/ntp.ino +++ b/code/espurna/ntp.ino @@ -80,7 +80,9 @@ void _ntpUpdate() { wsSend(_ntpWebSocketOnSend); #endif - DEBUG_MSG_P(PSTR("[NTP] Time: %s\n"), (char *) ntpDateTime().c_str()); + if (strlen(ntpDateTime().c_str())) { + DEBUG_MSG_P(PSTR("[NTP] Time: %s\n"), (char *) ntpDateTime().c_str()); + } }