mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
provisioning: Fix enable CONFIG_EXAMPLE_RESET_PROVISIONED will cause device crash
This commit is contained in:
parent
57fb076590
commit
87576aba28
@ -283,7 +283,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
||||
*provisioned = false;
|
||||
|
||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||
nvs_flash_erase();
|
||||
esp_wifi_restore();
|
||||
return ESP_OK;
|
||||
#endif
|
||||
|
||||
/* Get WiFi Station configuration */
|
||||
|
@ -221,7 +221,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
||||
*provisioned = false;
|
||||
|
||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||
nvs_flash_erase();
|
||||
esp_wifi_restore();
|
||||
return ESP_OK;
|
||||
#endif
|
||||
|
||||
/* Get WiFi Station configuration */
|
||||
|
@ -246,7 +246,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
||||
*provisioned = false;
|
||||
|
||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||
nvs_flash_erase();
|
||||
esp_wifi_restore();
|
||||
return ESP_OK;
|
||||
#endif
|
||||
|
||||
/* Get WiFi Station configuration */
|
||||
|
@ -232,7 +232,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
||||
*provisioned = false;
|
||||
|
||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||
nvs_flash_erase();
|
||||
esp_wifi_restore();
|
||||
return ESP_OK;
|
||||
#endif
|
||||
|
||||
/* Get WiFi Station configuration */
|
||||
|
Loading…
x
Reference in New Issue
Block a user