mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 18:26:30 +00:00
use sdkconfig define CONFIG_ETH_ENABLED
to check Ethernet availability (#22481)
This commit is contained in:
parent
551c919ae2
commit
b195bcd88d
@ -75,7 +75,7 @@
|
||||
|
||||
#if !defined(ESP_MAIL_DISABLE_NATIVE_ETHERNET)
|
||||
|
||||
#if defined(ESP32) && __has_include(<esp_eth_driver.h>)
|
||||
#if defined(ESP32) && defined(CONFIG_ETH_ENABLED)
|
||||
#include <ETH.h>
|
||||
#define ESP_MAIL_ETH_IS_AVAILABLE
|
||||
#elif defined(ESP8266) && defined(ESP8266_CORE_SDK_V3_X_X)
|
||||
@ -128,4 +128,4 @@
|
||||
#define WiFI_CONNECTED false
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user