mirror of https://github.com/arendst/Tasmota.git
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:
parent
aa39e000f7
commit
0bddfad14e
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
#if !defined(ESP_MAIL_DISABLE_NATIVE_ETHERNET)
|
#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>
|
#include <ETH.h>
|
||||||
#define ESP_MAIL_ETH_IS_AVAILABLE
|
#define ESP_MAIL_ETH_IS_AVAILABLE
|
||||||
#elif defined(ESP8266) && defined(ESP8266_CORE_SDK_V3_X_X)
|
#elif defined(ESP8266) && defined(ESP8266_CORE_SDK_V3_X_X)
|
||||||
|
|
|
@ -825,5 +825,13 @@
|
||||||
|
|
||||||
#endif // USE_MATTER_DEVICE
|
#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 // ESP32
|
||||||
#endif // _TASMOTA_CONFIGURATIONS_ESP32_H_
|
#endif // _TASMOTA_CONFIGURATIONS_ESP32_H_
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
//#if CONFIG_IDF_TARGET_ESP32
|
#ifndef CONFIG_IDF_TARGET_ESP32C2
|
||||||
#ifdef USE_ETHERNET
|
#ifdef USE_ETHERNET
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
* Ethernet support for ESP32
|
* Ethernet support for ESP32
|
||||||
|
@ -445,5 +445,5 @@ bool Xdrv82(uint32_t function) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // USE_ETHERNET
|
#endif // USE_ETHERNET
|
||||||
//#endif // CONFIG_IDF_TARGET_ESP32
|
#endif // CONFIG_IDF_TARGET_ESP32C2
|
||||||
#endif // ESP32
|
#endif // ESP32
|
||||||
|
|
Loading…
Reference in New Issue