Skip to content

Commit 4b638de

Browse files
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 <[email protected]>
1 parent 2463f57 commit 4b638de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/Ethernet/src/ETH.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
282282
break;
283283
#endif
284284
case ETH_PHY_KSZ8081:
285-
#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4,3,0)
285+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4,4,0)
286286
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);
287287
#else
288288
log_e("unsupported ethernet type 'ETH_PHY_KSZ8081'");

0 commit comments

Comments
 (0)