No Ethernet support for the C2 (#21691)

* No Ethernet for the C2

* Post process: Disable always Ethernet for C2

* better check for Ethernet available

* typo

* excluse c2 with `ifndef`
This commit is contained in:
Jason2866 2024-06-25 15:13:16 +02:00 committed by GitHub
parent aa39e000f7
commit 0bddfad14e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 3 deletions

View File

@ -75,7 +75,7 @@
#if !defined(ESP_MAIL_DISABLE_NATIVE_ETHERNET)
#if defined(ESP32) && __has_include(<ETH.h>)
#if defined(ESP32) && __has_include(<esp_eth_driver.h>)
#include <ETH.h>
#define ESP_MAIL_ETH_IS_AVAILABLE
#elif defined(ESP8266) && defined(ESP8266_CORE_SDK_V3_X_X)

View File

@ -825,5 +825,13 @@
#endif // USE_MATTER_DEVICE
/*********************************************************************************************\
* Post-process compile options for esp32-c2
\*********************************************************************************************/
#ifdef CONFIG_IDF_TARGET_ESP32C2
#undef USE_ETHERNET
#endif // CONFIG_IDF_TARGET_ESP32C2
#endif // ESP32
#endif // _TASMOTA_CONFIGURATIONS_ESP32_H_

View File

@ -18,7 +18,7 @@
*/
#ifdef ESP32
//#if CONFIG_IDF_TARGET_ESP32
#ifndef CONFIG_IDF_TARGET_ESP32C2
#ifdef USE_ETHERNET
/*********************************************************************************************\
* Ethernet support for ESP32
@ -445,5 +445,5 @@ bool Xdrv82(uint32_t function) {
}
#endif // USE_ETHERNET
//#endif // CONFIG_IDF_TARGET_ESP32
#endif // CONFIG_IDF_TARGET_ESP32C2
#endif // ESP32