mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_enable_reset_provision_cause_device_crash_v4.1' into 'release/v4.1'
provisioning: Fix enable CONFIG_EXAMPLE_RESET_PROVISIONED will cause device crash [backport v4.1] See merge request espressif/esp-idf!12351
This commit is contained in:
commit
e7e776a535
@ -282,7 +282,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 */
|
||||
|
@ -220,7 +220,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 */
|
||||
|
@ -245,7 +245,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 */
|
||||
|
@ -231,7 +231,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