Fix ethernet reset gpio

This commit is contained in:
2022-03-28 15:31:54 +02:00
parent c17062e1e8
commit 982f8e0e02
2 changed files with 3 additions and 3 deletions

View File

@@ -2714,7 +2714,7 @@ tl::expected<void, std::string> eth_begin(const config &config, const eth_config
eth_phy_config_t phy_config ETH_PHY_DEFAULT_CONFIG();
phy_config.phy_addr = eth.phy_addr;
phy_config.reset_gpio_num = eth.power;
phy_config.reset_gpio_num = eth.reset_gpio;
esp_eth_phy_t *eth_phy{};

View File

@@ -205,7 +205,7 @@ struct eth_config
static_dns_config static_dns;
uint8_t phy_addr;
int power;
int reset_gpio;
int mdc;
int mdio;
eth_phy_type_t type;
@@ -217,7 +217,7 @@ struct eth_config
left.static_ip == right.static_ip &&
left.static_dns == right.static_dns &&
left.phy_addr == right.phy_addr &&
left.power == right.power &&
left.reset_gpio == right.reset_gpio &&
left.mdc == right.mdc &&
left.mdio == right.mdio &&
left.type == right.type &&