use sdkconfig define `CONFIG_ETH_ENABLED` to check Ethernet availability (#22481)

This commit is contained in:
Jason2866 2024-11-13 22:38:22 +01:00 committed by GitHub
parent 551c919ae2
commit b195bcd88d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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