From 4b638de19de568e9647282152fab37210d1781e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20=C3=82ngelo=20Russi?= Date: Tue, 14 Dec 2021 11:09:01 -0300 Subject: [PATCH] using ksz8081 only from ESP-IDF 4.4 onwards (#5918) * using ksz8081 only from ESP-IDF 4.4 onwards The previous assertion only considerate the existance of ESP-IDF 4.3, but with the ESP-IDF 4.3.1 release this assertion would generate errors. Now only includes from ESP-IDF 4.4 onwards. Co-authored-by: Me No Dev --- libraries/Ethernet/src/ETH.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Ethernet/src/ETH.cpp b/libraries/Ethernet/src/ETH.cpp index 33e86691..851eb846 100644 --- a/libraries/Ethernet/src/ETH.cpp +++ b/libraries/Ethernet/src/ETH.cpp @@ -282,7 +282,7 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ break; #endif case ETH_PHY_KSZ8081: -#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4,3,0) +#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4,4,0) eth_phy = esp_eth_phy_new_ksz8081(&phy_config); #else log_e("unsupported ethernet type 'ETH_PHY_KSZ8081'");