From 55845fe3d7f68e302758a451615fee79a88b560a Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 4 Jul 2020 21:19:10 +0200 Subject: [PATCH] [MQTT] Fixed exclusion macros --- src/protocols/MQTT/MQTT.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/protocols/MQTT/MQTT.h b/src/protocols/MQTT/MQTT.h index e6b0adbe..87b8444d 100644 --- a/src/protocols/MQTT/MQTT.h +++ b/src/protocols/MQTT/MQTT.h @@ -1,7 +1,10 @@ -#if !defined(_RADIOLIB_MQTT_H) && !defined(RADIOLIB_EXCLUDE_MQTT) +#if !defined(_RADIOLIB_MQTT_H) #define _RADIOLIB_MQTT_H #include "../../TypeDef.h" + +#if !defined(RADIOLIB_EXCLUDE_MQTT) + #include "../TransportLayer/TransportLayer.h" // MQTT packet types @@ -140,3 +143,5 @@ class MQTTClient { }; #endif + +#endif