example: Scan failure should not cause system crash

This commit is contained in:
xiehang
2021-01-14 19:33:10 +08:00
committed by bot
parent 9cb3ac94c4
commit d9e1d51ec8
5 changed files with 7 additions and 7 deletions

View File

@@ -186,7 +186,7 @@ static bool wifi_cmd_sta_scan(const char* ssid)
scan_config.ssid = (uint8_t *) ssid;
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_scan_start(&scan_config, false) );
esp_wifi_scan_start(&scan_config, false);
return true;
}