From dec1d7dcf89b380d8718179c6abc07b297b9c71d Mon Sep 17 00:00:00 2001 From: xiehang Date: Tue, 19 Jan 2021 11:55:44 +0800 Subject: [PATCH] esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA * Original commit: espressif/esp-idf@b8a8fe3f5464366c9c52dd16c946585fde44ea35 --- 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 25fa8e07c..d6d2c0f2c 100644 --- a/examples/common_components/protocol_examples_common/connect.c +++ b/examples/common_components/protocol_examples_common/connect.c @@ -269,7 +269,7 @@ static esp_netif_t *wifi_start(void) }; ESP_LOGI(TAG, "Connecting to %s...", wifi_config.sta.ssid); ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA)); - ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config)); + ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config)); ESP_ERROR_CHECK(esp_wifi_start()); esp_wifi_connect(); return netif;