mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
wifi_provisioning: release lock on scan start failure
Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com> Merges: https://github.com/espressif/esp-idf/pull/6019
This commit is contained in:
parent
23584e094f
commit
adabe5a76e
@ -942,6 +942,7 @@ esp_err_t wifi_prov_mgr_wifi_scan_start(bool blocking, bool passive,
|
||||
|
||||
if (esp_wifi_scan_start(&prov_ctx->scan_cfg, false) != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Failed to start scan");
|
||||
RELEASE_LOCK(prov_ctx_lock);
|
||||
return ESP_FAIL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user