From 7db0df0a67bc8f699f749d018f05972ce07b0da5 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Wed, 16 Oct 2019 13:23:51 +0200 Subject: [PATCH] NTP: Fix warning about unused variable if DEBUG support is disabled (#1944) --- code/espurna/ntp.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/espurna/ntp.ino b/code/espurna/ntp.ino index 0d1f8cba..7a517f3a 100644 --- a/code/espurna/ntp.ino +++ b/code/espurna/ntp.ino @@ -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 }