mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02: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:
committed by
Shubham Kulkarni
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) {
|
if (esp_wifi_scan_start(&prov_ctx->scan_cfg, false) != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "Failed to start scan");
|
ESP_LOGE(TAG, "Failed to start scan");
|
||||||
|
RELEASE_LOCK(prov_ctx_lock);
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user