diff --git a/cores/esp32/IPAddress.h b/cores/esp32/IPAddress.h index aa1d10cee29..80a4e490d7e 100644 --- a/cores/esp32/IPAddress.h +++ b/cores/esp32/IPAddress.h @@ -91,6 +91,6 @@ class IPAddress: public Printable friend class DNSClient; }; -const IPAddress INADDR_NONE(0, 0, 0, 0); +// const IPAddress INADDR_NONE(0, 0, 0, 0); #endif diff --git a/libraries/WiFi/src/ETH.cpp b/libraries/WiFi/src/ETH.cpp index 092d6a3d467..ed6eabf8f5f 100644 --- a/libraries/WiFi/src/ETH.cpp +++ b/libraries/WiFi/src/ETH.cpp @@ -287,8 +287,12 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ eth_phy = esp_eth_phy_new_dm9051(&phy_config); break; #endif + +#if ((ESP_IDF_VERSION_MAJOR >= 4) && (ESP_IDF_VERSION_MINOR > 3)) case ETH_PHY_KSZ8081: eth_phy = esp_eth_phy_new_ksz8081(&phy_config); + break; +#endif default: break; }