From 353b739d90d3c733f0b9590708549fdd9495d023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 2 Mar 2018 12:57:16 +0100 Subject: [PATCH] Fix UART_MQTT_SUPPORT guards --- code/espurna/espurna.ino | 2 +- code/espurna/uartmqtt.ino | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/espurna.ino b/code/espurna/espurna.ino index 0f8e7d4c..c1a92717 100644 --- a/code/espurna/espurna.ino +++ b/code/espurna/espurna.ino @@ -147,7 +147,7 @@ void setup() { #if SCHEDULER_SUPPORT schSetup(); #endif - #ifdef UART_MQTT_SUPPORT + #if UART_MQTT_SUPPORT uartmqttSetup(); #endif diff --git a/code/espurna/uartmqtt.ino b/code/espurna/uartmqtt.ino index 6e68ad86..bc96878a 100644 --- a/code/espurna/uartmqtt.ino +++ b/code/espurna/uartmqtt.ino @@ -7,7 +7,7 @@ Adapted by Xose PĂ©rez */ -#ifdef UART_MQTT_SUPPORT +#if UART_MQTT_SUPPORT char _uartmqttBuffer[UART_MQTT_BUFFER_SIZE]; bool _uartmqttNewData = false; @@ -100,4 +100,4 @@ void uartmqttSetup() { } -#endif +#endif // UART_MQTT_SUPPORT