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

@@ -70,7 +70,7 @@ static void event_handler(void* arg, esp_event_base_t event_base,
ESP_ERROR_CHECK( esp_wifi_disconnect() );
ESP_ERROR_CHECK( esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
ESP_ERROR_CHECK( esp_wifi_connect() );
esp_wifi_connect();
} else if (event_base == SC_EVENT && event_id == SC_EVENT_SEND_ACK_DONE) {
xEventGroupSetBits(s_wifi_event_group, ESPTOUCH_DONE_BIT);
}