Skip to content

Commit

Permalink
expected changes for arduino30 (#19421)
Browse files Browse the repository at this point in the history
  • Loading branch information
Staars authored Aug 30, 2023
1 parent 39083b6 commit 8e8e019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasmota/tasmota_xdrv_driver/xdrv_82_esp32_ethernet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ void EthernetInit(void) {
// }
// delay(1);
//#endif // CONFIG_IDF_TARGET_ESP32
#if ESP_IDF_VERSION_MAJOR >= 5
if (!ETH.begin( (eth_phy_type_t)Settings->eth_type, Settings->eth_address, eth_mdc, eth_mdio, eth_power, (eth_clock_mode_t)Settings->eth_clk_mode)) {
#else
if (!ETH.begin(Settings->eth_address, eth_power, eth_mdc, eth_mdio, (eth_phy_type_t)Settings->eth_type, (eth_clock_mode_t)Settings->eth_clk_mode)) {
#endif
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_ETH "Bad PHY type or init error"));
return;
};
Expand Down

0 comments on commit 8e8e019

Please sign in to comment.