From e4936f6c5fe85a6eaff6f247841d02001777b025 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:34:14 +0200 Subject: [PATCH] Fix ethernet --- tasmota/tasmota_xdrv_driver/xdrv_82_esp32_ethernet.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_82_esp32_ethernet.ino b/tasmota/tasmota_xdrv_driver/xdrv_82_esp32_ethernet.ino index 696b011fd..2fe1b7a9d 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_82_esp32_ethernet.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_82_esp32_ethernet.ino @@ -198,7 +198,7 @@ void EthernetInit(void) { if (Settings->eth_type < 7) { Settings->eth_type = 8; // Select W5500 (SPI) for non-EMAC hardware } - eth_type = Settings->eth_type -7; // As No EMAC support substract EMAC enums (According ETH.cpp debug info) + eth_type = eth_type_xtable[Settings->eth_type] -7; // As No EMAC support substract EMAC enums (According ETH.cpp debug info) #endif // CONFIG_ETH_USE_ESP32_EMAC if (Settings->eth_type < 7) {