From 982f8e0e02cddcffeb07066ef994d294f2868a1e Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 28 Mar 2022 15:31:54 +0200 Subject: [PATCH] Fix ethernet reset gpio --- src/espwifistack.cpp | 2 +- src/espwifistackconfig.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/espwifistack.cpp b/src/espwifistack.cpp index 7016795..217cce0 100644 --- a/src/espwifistack.cpp +++ b/src/espwifistack.cpp @@ -2714,7 +2714,7 @@ tl::expected 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{}; diff --git a/src/espwifistackconfig.h b/src/espwifistackconfig.h index 099a655..d45c88b 100644 --- a/src/espwifistackconfig.h +++ b/src/espwifistackconfig.h @@ -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 &&