From 84211547914e70e8226d6b16506a94b811f77da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 29 Aug 2017 19:03:32 +0200 Subject: [PATCH] Fix DEBUG_XXXX_SUPPORT compile checks --- code/espurna/debug.ino | 10 +++++----- code/espurna/mqtt.ino | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/espurna/debug.ino b/code/espurna/debug.ino index e4cbe3c1..cdd667dc 100644 --- a/code/espurna/debug.ino +++ b/code/espurna/debug.ino @@ -9,7 +9,7 @@ Copyright (C) 2016-2017 by Xose PĂ©rez #include #include -#ifdef DEBUG_UDP_SUPPORT +#if DEBUG_UDP_SUPPORT #include WiFiUDP udpDebug; #endif @@ -23,14 +23,14 @@ void debugSend(const char * format, ...) { int len = ets_vsnprintf(buffer, DEBUG_MESSAGE_MAX_LENGTH, format, args); va_end(args); - #ifdef DEBUG_SERIAL_SUPPORT + #if DEBUG_SERIAL_SUPPORT DEBUG_PORT.printf(buffer); if (len > DEBUG_MESSAGE_MAX_LENGTH) { DEBUG_PORT.printf(" (...)\n"); } #endif - #ifdef DEBUG_UDP_SUPPORT + #if DEBUG_UDP_SUPPORT udpDebug.beginPacket(DEBUG_UDP_IP, DEBUG_UDP_PORT); udpDebug.write(buffer); if (len > DEBUG_MESSAGE_MAX_LENGTH) { @@ -54,14 +54,14 @@ void debugSend_P(PGM_P format, ...) { int len = ets_vsnprintf(buffer, DEBUG_MESSAGE_MAX_LENGTH, f, args); va_end(args); - #ifdef DEBUG_SERIAL_SUPPORT + #if DEBUG_SERIAL_SUPPORT DEBUG_PORT.printf(buffer); if (len > DEBUG_MESSAGE_MAX_LENGTH) { DEBUG_PORT.printf(" (...)\n"); } #endif - #ifdef DEBUG_UDP_SUPPORT + #if DEBUG_UDP_SUPPORT udpDebug.beginPacket(DEBUG_UDP_IP, DEBUG_UDP_PORT); udpDebug.write(buffer); if (len > DEBUG_MESSAGE_MAX_LENGTH) { diff --git a/code/espurna/mqtt.ino b/code/espurna/mqtt.ino index 4e893e11..9dda8a39 100644 --- a/code/espurna/mqtt.ino +++ b/code/espurna/mqtt.ino @@ -461,7 +461,7 @@ void mqttConfigure() { } -#ifdef MDNS_SUPPORT +#if MDNS_SUPPORT boolean mqttDiscover() { int count = MDNS.queryService("mqtt", "tcp");