mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix ethernet driver setting gpio 5 high when no power pin defined (#4531)
This commit is contained in:
		| @@ -43,8 +43,7 @@ void EthernetComponent::setup() { | |||||||
|   eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG(); |   eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG(); | ||||||
|  |  | ||||||
|   phy_config.phy_addr = this->phy_addr_; |   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_mdc_gpio_num = this->mdc_pin_; | ||||||
|   mac_config.smi_mdio_gpio_num = this->mdio_pin_; |   mac_config.smi_mdio_gpio_num = this->mdio_pin_; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user