mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Merge branch 'bugfix/fix_enable_reset_provision_cause_device_crash_v4.3' into 'release/v4.3'
provisioning: Fix enable CONFIG_EXAMPLE_RESET_PROVISIONED will cause device crash [backport v4.3] See merge request espressif/esp-idf!12353
This commit is contained in:
@@ -283,7 +283,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
|||||||
*provisioned = false;
|
*provisioned = false;
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||||
nvs_flash_erase();
|
esp_wifi_restore();
|
||||||
|
return ESP_OK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get WiFi Station configuration */
|
/* Get WiFi Station configuration */
|
||||||
|
@@ -221,7 +221,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
|||||||
*provisioned = false;
|
*provisioned = false;
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||||
nvs_flash_erase();
|
esp_wifi_restore();
|
||||||
|
return ESP_OK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get WiFi Station configuration */
|
/* Get WiFi Station configuration */
|
||||||
|
@@ -246,7 +246,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
|||||||
*provisioned = false;
|
*provisioned = false;
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||||
nvs_flash_erase();
|
esp_wifi_restore();
|
||||||
|
return ESP_OK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get WiFi Station configuration */
|
/* Get WiFi Station configuration */
|
||||||
|
@@ -232,7 +232,8 @@ esp_err_t app_prov_is_provisioned(bool *provisioned)
|
|||||||
*provisioned = false;
|
*provisioned = false;
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
#ifdef CONFIG_EXAMPLE_RESET_PROVISIONED
|
||||||
nvs_flash_erase();
|
esp_wifi_restore();
|
||||||
|
return ESP_OK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get WiFi Station configuration */
|
/* Get WiFi Station configuration */
|
||||||
|
Reference in New Issue
Block a user