From 8da743f98ed40c5375da077b8988311fa4952bd0 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 11 Jun 2019 17:39:12 +0200 Subject: [PATCH] Fix Arduino IDE compilation error Fix Arduino IDE compilation error --- sonoff/WiFiClientSecureLightBearSSL.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sonoff/WiFiClientSecureLightBearSSL.cpp b/sonoff/WiFiClientSecureLightBearSSL.cpp index ebb913589..6f4154fc8 100644 --- a/sonoff/WiFiClientSecureLightBearSSL.cpp +++ b/sonoff/WiFiClientSecureLightBearSSL.cpp @@ -22,6 +22,9 @@ #define LWIP_INTERNAL +#include "my_user_config.h" +#ifdef USE_MQTT_TLS + #include #include #include @@ -43,8 +46,6 @@ extern "C" { #include #include "c_types.h" -#include "my_user_config.h" - #define DEBUG_TLS #ifndef ARDUINO_ESP8266_RELEASE_2_5_2 @@ -944,3 +945,5 @@ bool WiFiClientSecure_light::_connectSSL(const char* hostName) { } }; + +#endif // USE_MQTT_TLS