Browse Source

Do not show empty time strings (#691)

rfm69
Xose Pérez 6 years ago
parent
commit
b75e1ea7d6
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      code/espurna/ntp.ino

+ 3
- 1
code/espurna/ntp.ino View File

@ -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());
}
}


Loading…
Cancel
Save