Skip to content

Commit 6dfd958

Browse files
authored
fix(eth): Set default clock in pin value to zero (#10513)
When Arduino is used as component, `CONFIG_ETH_RMII_CLK_IN_GPIO` might not be defined, so we set it to const `0` to clear the issue.
1 parent 3554927 commit 6dfd958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Ethernet/src/ETH.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ bool ETHClass::begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, i
210210

211211
#if CONFIG_IDF_TARGET_ESP32
212212
#undef DEFAULT_RMII_CLK_GPIO
213-
#define DEFAULT_RMII_CLK_GPIO (emac_rmii_clock_gpio_t)(CONFIG_ETH_RMII_CLK_IN_GPIO)
213+
#define DEFAULT_RMII_CLK_GPIO (emac_rmii_clock_gpio_t)(0)
214214
#endif
215215

216216
eth_esp32_emac_config_t mac_config = ETH_EMAC_DEFAULT_CONFIG();

0 commit comments

Comments
 (0)