From 487287157d0fa5a0585cf105a325b23dbb32ca5f Mon Sep 17 00:00:00 2001 From: xiehang Date: Mon, 11 Jan 2021 14:35:29 +0800 Subject: [PATCH] example: We should not check the return value of esp_wifi_connect() in any case * Original commit: espressif/esp-idf@c260c223e979c2604806cb585064e4fcfe80fdba --- 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 2449ab940..25fa8e07c 100644 --- a/examples/common_components/protocol_examples_common/connect.c +++ b/examples/common_components/protocol_examples_common/connect.c @@ -271,7 +271,7 @@ static esp_netif_t *wifi_start(void) 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_start()); - ESP_ERROR_CHECK(esp_wifi_connect()); + esp_wifi_connect(); return netif; }