mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
Merge branch 'bugfix/fix_some_wifi_bugs_250427_v5.2' into 'release/v5.2'
fix(phy): fix phy data partition restoring default fails issue(Backport v5.2) See merge request espressif/esp-idf!38777
This commit is contained in:
@ -642,6 +642,13 @@ const esp_phy_init_data_t* esp_phy_get_init_data(void)
|
|||||||
assert(memcmp(init_data_store + init_data_store_length - sizeof(phy_init_magic_post),
|
assert(memcmp(init_data_store + init_data_store_length - sizeof(phy_init_magic_post),
|
||||||
PHY_INIT_MAGIC, sizeof(phy_init_magic_post)) == 0);
|
PHY_INIT_MAGIC, sizeof(phy_init_magic_post)) == 0);
|
||||||
|
|
||||||
|
err = esp_partition_erase_range(partition, 0, partition->size);
|
||||||
|
if (err != ESP_OK) {
|
||||||
|
ESP_LOGE(TAG, "failed to erase partition (0x%x)!", err);
|
||||||
|
free(init_data_store);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// write default data
|
// write default data
|
||||||
err = esp_partition_write(partition, 0, init_data_store, init_data_store_length);
|
err = esp_partition_write(partition, 0, init_data_store, init_data_store_length);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
|
Submodule components/esp_wifi/lib updated: 603ef1ff41...8d4703d70e
Reference in New Issue
Block a user