From eb566c3b629849dd000634ce3bff06dd5f3ef73c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 20 Feb 2022 14:12:05 +0100 Subject: [PATCH] Fix ESP32C3 compilation --- tasmota/tasmota_globals.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tasmota/tasmota_globals.h b/tasmota/tasmota_globals.h index c8a60acda..91daa87a0 100644 --- a/tasmota/tasmota_globals.h +++ b/tasmota/tasmota_globals.h @@ -94,6 +94,19 @@ String EthernetMacAddress(void); #ifdef ESP32 +/*-------------------------------------------------------------------------------------------*\ + * Start ESP32-C32 specific parameters - disable features not present in ESP32-C3 +\*-------------------------------------------------------------------------------------------*/ + +#if CONFIG_IDF_TARGET_ESP32C3 // ESP32-C3 +#ifdef USE_ETHERNET +#undef USE_ETHERNET // ESP32-C3 does not support ethernet +#endif +#endif // CONFIG_IDF_TARGET_ESP32C3 + +/*-------------------------------------------------------------------------------------------*\ + * End ESP32-S2 specific parameters +\*-------------------------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------------------------*\ * Start ESP32-S2 specific parameters - disable features not present in ESP32-S2 \*-------------------------------------------------------------------------------------------*/