From 05dcd8f0eeecdbd6f71fc612ced8a4083d4b1066 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sun, 15 Aug 2021 21:58:42 +0500 Subject: [PATCH] examples/protocols: fix compilation when CONFIG_EXAMPLE_USE_OPENETH=y The code checked CONFIG_ETH_USE_SPI_ETHERNET (which is usually set), but CONFIG_EXAMPLE_ETH_SPI_xxx_GPIO options are only defined if CONFIG_EXAMPLE_USE_SPI_ETHERNET is set. Fix the ifdef accordingly. Regression from abc79de6. * Original commit: espressif/esp-idf@ece73a3e55f482ec9033f94281726a953d83b040 --- examples/common_components/protocol_examples_common/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common_components/protocol_examples_common/connect.c b/examples/common_components/protocol_examples_common/connect.c index d1063b43a..3bf58549a 100644 --- a/examples/common_components/protocol_examples_common/connect.c +++ b/examples/common_components/protocol_examples_common/connect.c @@ -398,7 +398,7 @@ static esp_netif_t *eth_start(void) #elif CONFIG_EXAMPLE_ETH_PHY_DP83848 s_phy = esp_eth_phy_new_dp83848(&phy_config); #endif -#elif CONFIG_ETH_USE_SPI_ETHERNET +#elif CONFIG_EXAMPLE_USE_SPI_ETHERNET gpio_install_isr_service(0); spi_device_handle_t spi_handle = NULL; spi_bus_config_t buscfg = {