From b195bcd88d7c720143769ee51c00256b22ac7660 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:38:22 +0100 Subject: [PATCH] use sdkconfig define `CONFIG_ETH_ENABLED` to check Ethernet availability (#22481) --- lib/libesp32/ESP-Mail-Client/src/extras/Networks_Provider.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libesp32/ESP-Mail-Client/src/extras/Networks_Provider.h b/lib/libesp32/ESP-Mail-Client/src/extras/Networks_Provider.h index 8e55a735d..a891eb1bf 100644 --- a/lib/libesp32/ESP-Mail-Client/src/extras/Networks_Provider.h +++ b/lib/libesp32/ESP-Mail-Client/src/extras/Networks_Provider.h @@ -75,7 +75,7 @@ #if !defined(ESP_MAIL_DISABLE_NATIVE_ETHERNET) -#if defined(ESP32) && __has_include() +#if defined(ESP32) && defined(CONFIG_ETH_ENABLED) #include #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 \ No newline at end of file +#endif