Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4acfbc

Browse filesBrowse files
authored
only use ksz8081 for idf versions later than 4.3 (this fixes compile as component for idf 4.3) (espressif#5599)
esp_eth_phy_new_ksz8081 was added in IDF after version 4.3 and generates a compilation error with IDF-4.3. This change will only use esp_eth_phy_new_ksz8081 for IDF versions after 4.3
1 parent 79d53bd commit e4acfbc
Copy full SHA for e4acfbc

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎libraries/WiFi/src/ETH.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/ETH.cpp
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,12 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
288288
break;
289289
#endif
290290
case ETH_PHY_KSZ8081:
291+
#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4,3,0)
291292
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);
293+
#else
294+
log_e("unsupported ethernet type 'ETH_PHY_KSZ8081'");
295+
#endif
296+
break;
292297
default:
293298
break;
294299
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.