diff --git a/lib/libesp32/ESP32-Ethernet/src/ETH.cpp b/lib/libesp32/ESP32-Ethernet/src/ETH.cpp index b0e93034e..68e7a0593 100644 --- a/lib/libesp32/ESP32-Ethernet/src/ETH.cpp +++ b/lib/libesp32/ESP32-Ethernet/src/ETH.cpp @@ -18,8 +18,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#if CONFIG_IDF_TARGET_ESP32 - #include "ETH.h" #include "eth_phy/phy.h" #include "eth_phy/phy_tlk110.h" @@ -304,5 +302,3 @@ String ETHClass::macAddress(void) } ETHClass ETH; - -#endif // CONFIG_IDF_TARGET_ESP32 diff --git a/lib/libesp32/ESP32-Ethernet/src/ETH.h b/lib/libesp32/ESP32-Ethernet/src/ETH.h index ff45b8bc7..7f175e13f 100644 --- a/lib/libesp32/ESP32-Ethernet/src/ETH.h +++ b/lib/libesp32/ESP32-Ethernet/src/ETH.h @@ -21,8 +21,6 @@ #ifndef _ETH_H_ #define _ETH_H_ -#if CONFIG_IDF_TARGET_ESP32 - #include "WiFi.h" #include "esp_eth.h" @@ -94,5 +92,4 @@ class ETHClass { extern ETHClass ETH; -#endif // CONFIG_IDF_TARGET_ESP32 #endif /* _ETH_H_ */