mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-09 17:57:08 +01:00
NTP: Fix warning about unused variable if DEBUG support is disabled (#1944)
This commit is contained in:
committed by
Max Prokhorov
parent
d0a137ce94
commit
7db0df0a67
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user