example: do not check the return value of esp_wifi_connect()

This commit is contained in:
xiehang
2021-01-15 19:40:25 +08:00
parent 7e63061fae
commit 2f4ef71beb
13 changed files with 22 additions and 22 deletions

View File

@@ -148,7 +148,7 @@ static bool wifi_cmd_sta_join(const char *ssid, const char *pass)
esp_wifi_disconnect();
//ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) ); //by snake
ESP_ERROR_CHECK( esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
ESP_ERROR_CHECK( esp_wifi_connect() );
esp_wifi_connect();
xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT, 0, 1, 5000 / portTICK_RATE_MS);