Merge branch 'bugfix/wifi_prov_not_stopping_v4.0' into 'release/v4.0'
wifi_provisioning: Catch the Wi-Fi events even after Connection errors (v4.0) See merge request espressif/esp-idf!8608
This commit is contained in:
commit
254967eea5
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,7 @@ static void wifi_prov_mgr_event_handler_internal(
|
|||
|
||||
/* Only handle events when credential is received and
|
||||
* Wi-Fi STA is yet to complete trying the connection */
|
||||
if (prov_ctx->prov_state != WIFI_PROV_STATE_CRED_RECV) {
|
||||
if (prov_ctx->prov_state < WIFI_PROV_STATE_CRED_RECV) {
|
||||
RELEASE_LOCK(prov_ctx_lock);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue