diff --git a/Kconfig b/Kconfig index e09fff2..21b6591 100644 --- a/Kconfig +++ b/Kconfig @@ -279,7 +279,7 @@ menu "WebGuiApp configuration" config USE_SPI_ETHERNET bool "SPI Ethernet" default y - select ETH_USE_SPI_ETHERNET + select WEBGUIAPP_SPI_ENABLE help Use external SPI-Ethernet module(s). diff --git a/src/ETHTransport.c b/src/ETHTransport.c index a00389f..498eac6 100644 --- a/src/ETHTransport.c +++ b/src/ETHTransport.c @@ -19,6 +19,8 @@ * Description: */ + + #include "SystemConfiguration.h" #include #include @@ -33,8 +35,8 @@ #include "sdkconfig.h" #if CONFIG_ETH_USE_SPI_ETHERNET #include "driver/spi_master.h" -#endif // CONFIG_ETH_USE_SPI_ETHERNET -//#include "PortExtender.h" +#endif + static const char *TAG = "EthTransport"; esp_netif_t *eth_netif_spi[CONFIG_SPI_ETHERNETS_NUM] = { NULL };