Browse Source

NTP: Fix warning about unused variable if DEBUG support is disabled (#1944)

master
Niek van der Maas 5 years ago
committed by Max Prokhorov
parent
commit
7db0df0a67
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/ntp.ino

+ 2
- 0
code/espurna/ntp.ino View File

@ -122,11 +122,13 @@ void _ntpReport() {
_ntp_report = false;
#if DEBUG_SUPPORT
if (ntpSynced()) {
time_t t = now();
DEBUG_MSG_P(PSTR("[NTP] UTC Time : %s\n"), ntpDateTime(ntpLocal2UTC(t)).c_str());
DEBUG_MSG_P(PSTR("[NTP] Local Time: %s\n"), ntpDateTime(t).c_str());
}
#endif
}


Loading…
Cancel
Save