diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 4a650c7..bada3d5 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -1,7 +1,9 @@ #include "my_mqtt.h" #include "config.h" -#ifdef MQTT_ENABLE +#ifndef MQTT_ENABLE + #pragma message "MQTT_ENABLE is false. Skipping MQTT." +#else #include #include