Fix ethernet

This commit is contained in:
Theo Arends 2024-04-17 15:34:14 +02:00
parent e95c940345
commit e4936f6c5f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {