diff --git a/tasmota/include/tasmota_configurations_ESP32.h b/tasmota/include/tasmota_configurations_ESP32.h index 8fcc8ba0f..b0899d852 100644 --- a/tasmota/include/tasmota_configurations_ESP32.h +++ b/tasmota/include/tasmota_configurations_ESP32.h @@ -21,6 +21,7 @@ #define _TASMOTA_CONFIGURATIONS_ESP32_H_ #ifdef ESP32 +#include "sdkconfig.h" /*********************************************************************************************\ * [tasmota32x-safeboot.bin] @@ -185,8 +186,10 @@ #define USE_WEBSERVER #define USE_WEBCLIENT #define USE_WEBCLIENT_HTTPS -#define USE_SERIAL_BRIDGE // Add support for software Serial Bridge console Tee (+2k code) -#define USE_ETHERNET +#if CONFIG_IDF_TARGET_ESP32 + #define USE_SERIAL_BRIDGE // Add support for software Serial Bridge console Tee (+2k code) + #define USE_ETHERNET +#endif // CONFIG_IDF_TARGET_ESP32 #endif // FIRMWARE_SAFEBOOT