diff --git a/components/at/src/at_init.c b/components/at/src/at_init.c index 386546e2..e2f760b6 100644 --- a/components/at/src/at_init.c +++ b/components/at/src/at_init.c @@ -62,7 +62,7 @@ static void at_wifi_statistics_task(void *params) esp_err_t esp_at_netif_init(void) { -#ifdef CONFIG_AT_WIFI_COMMAND_SUPPORT +#if defined(CONFIG_AT_WIFI_COMMAND_SUPPORT) || defined(CONFIG_AT_ETHERNET_SUPPORT) return esp_netif_init(); #else return ESP_OK;