Fix ethernet reset gpio
This commit is contained in:
@@ -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();
|
eth_phy_config_t phy_config ETH_PHY_DEFAULT_CONFIG();
|
||||||
phy_config.phy_addr = eth.phy_addr;
|
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{};
|
esp_eth_phy_t *eth_phy{};
|
||||||
|
|
||||||
|
@@ -205,7 +205,7 @@ struct eth_config
|
|||||||
static_dns_config static_dns;
|
static_dns_config static_dns;
|
||||||
|
|
||||||
uint8_t phy_addr;
|
uint8_t phy_addr;
|
||||||
int power;
|
int reset_gpio;
|
||||||
int mdc;
|
int mdc;
|
||||||
int mdio;
|
int mdio;
|
||||||
eth_phy_type_t type;
|
eth_phy_type_t type;
|
||||||
@@ -217,7 +217,7 @@ struct eth_config
|
|||||||
left.static_ip == right.static_ip &&
|
left.static_ip == right.static_ip &&
|
||||||
left.static_dns == right.static_dns &&
|
left.static_dns == right.static_dns &&
|
||||||
left.phy_addr == right.phy_addr &&
|
left.phy_addr == right.phy_addr &&
|
||||||
left.power == right.power &&
|
left.reset_gpio == right.reset_gpio &&
|
||||||
left.mdc == right.mdc &&
|
left.mdc == right.mdc &&
|
||||||
left.mdio == right.mdio &&
|
left.mdio == right.mdio &&
|
||||||
left.type == right.type &&
|
left.type == right.type &&
|
||||||
|
Reference in New Issue
Block a user