Skip to content

Commit

Permalink
Restart provisioning on failed credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Dec 2, 2024
1 parent 5ff84ec commit 2c7f4a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/kernel/drivers/WiFiDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class WiFiDriver {
*reason == WIFI_PROV_STA_AUTH_ERROR
? "authentication failed"
: "AP not found");
ESP_ERROR_CHECK(wifi_prov_mgr_reset_sm_state_on_failure());
break;
}
case WIFI_PROV_CRED_SUCCESS: {
Expand Down

0 comments on commit 2c7f4a8

Please sign in to comment.