From 23c2efbe8f7db7ffdbdeccff3531c7fa8d9a21dc Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sun, 16 Jan 2022 21:34:29 +0100 Subject: [PATCH] Fix to allow compilation of minicustom32 --- lib/libesp32/Berry-HttpClientLight/src/HttpClientLight.cpp | 2 -- tasmota/support_tasmota.ino | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libesp32/Berry-HttpClientLight/src/HttpClientLight.cpp b/lib/libesp32/Berry-HttpClientLight/src/HttpClientLight.cpp index e24bee87a..1c1c6ac32 100644 --- a/lib/libesp32/Berry-HttpClientLight/src/HttpClientLight.cpp +++ b/lib/libesp32/Berry-HttpClientLight/src/HttpClientLight.cpp @@ -28,7 +28,6 @@ #ifdef ESP32 #include "tasmota_options.h" -#ifdef USE_BERRY #include #ifdef HTTPCLIENT_1_1_COMPATIBLE @@ -1504,5 +1503,4 @@ const String &HTTPClientLight::getLocation(void) { return _location; } -#endif // USE_BERRY #endif // ESP32 diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index e85c280ed..5cfc2ad4f 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -17,6 +17,10 @@ along with this program. If not, see . */ +#if defined(ESP32) && defined(USE_WEBCLIENT_HTTPS) + #include "HttpClientLight.h" +#endif + const char kSleepMode[] PROGMEM = "Dynamic|Normal"; const char kPrefixes[] PROGMEM = D_CMND "|" D_STAT "|" D_TELE;