Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty NTP time in debug console #691

Closed
PieBru opened this issue Mar 18, 2018 · 1 comment
Closed

Empty NTP time in debug console #691

PieBru opened this issue Mar 18, 2018 · 1 comment
Labels
Milestone

Comments

@PieBru
Copy link

PieBru commented Mar 18, 2018

Hi, sometimes "[NTP] Time:" console log doesn't show the time.
The aesthetic solution is simple, I didn't drill down the cause as it seems it doesn't give problems elsewhere.
Cheers,
Piero

-    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());
@xoseperez xoseperez added the ntp label Mar 19, 2018
@xoseperez
Copy link
Owner

It simply means the NTP module has not yet got a time from the server...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants