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