mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
style
This commit is contained in:
parent
58b4bb0447
commit
d064515a29
1 changed files with 1 additions and 4 deletions
|
@ -132,8 +132,7 @@ void EthernetComponent::setup() {
|
|||
esp32_emac_config.clock_config.rmii.clock_mode = this->clk_mode_;
|
||||
esp32_emac_config.clock_config.rmii.clock_gpio = this->clk_gpio_;
|
||||
|
||||
esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config);
|
||||
|
||||
esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&esp32_emac_config, &mac_config);
|
||||
#else
|
||||
mac_config.smi_mdc_gpio_num = this->mdc_pin_;
|
||||
mac_config.smi_mdio_gpio_num = this->mdio_pin_;
|
||||
|
@ -141,9 +140,7 @@ void EthernetComponent::setup() {
|
|||
mac_config.clock_config.rmii.clock_gpio = this->clk_gpio_;
|
||||
|
||||
esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
switch (this->type_) {
|
||||
|
|
Loading…
Reference in a new issue