example: We should not check the return value of esp_wifi_connect() in any case

This commit is contained in:
xiehang
2021-01-11 14:35:29 +08:00
parent 87db7e1705
commit c260c223e9
7 changed files with 9 additions and 9 deletions

View File

@@ -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;
}