Skip to content

Commit d221c5c

Browse files
committed
only use ksz8081 for idf versions later than 4.3
1 parent a62979d commit d221c5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/WiFi/src/ETH.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
287287
eth_phy = esp_eth_phy_new_dm9051(&phy_config);
288288
break;
289289
#endif
290+
#if ESP_IDF_VERSION_MINOR > 3 || ESP_IDF_VERSION_MAJOR > 4 // added starting after 4.3
290291
case ETH_PHY_KSZ8081:
291292
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);
293+
#endif
292294
default:
293295
break;
294296
}

0 commit comments

Comments
 (0)