diff --git a/sonoff/WiFiClientSecureLightBearSSL.cpp b/sonoff/WiFiClientSecureLightBearSSL.cpp index f86dc15bb..ebb913589 100644 --- a/sonoff/WiFiClientSecureLightBearSSL.cpp +++ b/sonoff/WiFiClientSecureLightBearSSL.cpp @@ -47,6 +47,10 @@ extern "C" { #define DEBUG_TLS +#ifndef ARDUINO_ESP8266_RELEASE_2_5_2 +#undef DEBUG_TLS +#endif + #ifdef DEBUG_TLS #include "coredecls.h" #define LOG_HEAP_SIZE(a) _Log_heap_size(a)