mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix ethernet driver setting gpio 5 high when no power pin defined (#4531)
This commit is contained in:
parent
bc28ea1fde
commit
2ef25f3153
1 changed files with 1 additions and 2 deletions
|
@ -43,8 +43,7 @@ void EthernetComponent::setup() {
|
|||
eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();
|
||||
|
||||
phy_config.phy_addr = this->phy_addr_;
|
||||
if (this->power_pin_ != -1)
|
||||
phy_config.reset_gpio_num = this->power_pin_;
|
||||
phy_config.reset_gpio_num = this->power_pin_;
|
||||
|
||||
mac_config.smi_mdc_gpio_num = this->mdc_pin_;
|
||||
mac_config.smi_mdio_gpio_num = this->mdio_pin_;
|
||||
|
|
Loading…
Reference in a new issue