diff --git a/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp b/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp index f41c8df59..f31aa61ba 100644 --- a/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp +++ b/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp @@ -27,7 +27,7 @@ #include "tasmota_options.h" -#if defined(ESP8266) && defined(USE_TLS) +#if defined(ESP8266) && (defined(USE_TLS) || defined(USE_SENDMAIL)) #include <stdint.h> #include <stdlib.h> #include "StackThunk_light.h" diff --git a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp index 63d21e45d..02db47ab9 100755 --- a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp +++ b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp @@ -21,7 +21,7 @@ */ #include "tasmota_options.h" -#if defined(USE_TLS) +#if defined(USE_TLS) || defined(USE_SENDMAIL) // #define DEBUG_TLS // #define DEBUG_ESP_SSL diff --git a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.h b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.h index 65a3544be..2760ac310 100755 --- a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.h +++ b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.h @@ -24,7 +24,7 @@ #ifndef wificlientlightbearssl_h #define wificlientlightbearssl_h -#ifdef USE_TLS +#if defined(USE_TLS) || defined(USE_SENDMAIL) #include <vector> #include "WiFiClient.h" #include <t_bearssl.h> diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index ea3283456..036b440d4 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -1354,7 +1354,7 @@ float DoMedian5(uint8_t index, float in) { return median_array(mf->buffer, MEDIAN_SIZE); } - +#ifdef USE_UFILESYS void fread_str(uint8_t fref, char *sp, uint16_t slen) { uint16_t index = 0; while (glob_script_mem.files[fref].available()) { @@ -1371,6 +1371,7 @@ void fread_str(uint8_t fref, char *sp, uint16_t slen) { } *sp = 0; } +#endif #ifdef USE_FEXTRACT @@ -8889,8 +8890,8 @@ uint32_t call2https(const char *host, const char *path) { uint32_t status = 0; #ifdef TESLA_POWERWALL - authCookie = powerwall.getAuthCookie(); - return 0; +// authCookie = powerwall.getAuthCookie(); +// return 0; #endif #ifdef ESP32