refactor(esp_partition): Expose function for unloading partitions

Closes https://github.com/espressif/esp-idf/issues/12625
This commit is contained in:
Adam Múdry
2023-11-22 11:11:04 +01:00
parent e50d9fca3a
commit 0cc38fb901
4 changed files with 8 additions and 7 deletions

View File

@@ -331,7 +331,7 @@ esp_err_t esp_partition_file_munmap(void)
return ESP_ERR_NOT_FOUND;
}
unload_partitions();
esp_partition_unload_all();
#ifdef CONFIG_ESP_PARTITION_ENABLE_STATS
free(s_esp_partition_stat_sector_erase_count);