forked from espressif/esp-idf
fix(security): Fix flash encryption example warning
The Flash encryption example was giving a warning message related to the mount failure of the fatfs partition. The change fixes the behaviour to remove the warning
This commit is contained in:
@@ -68,9 +68,6 @@ static size_t example_fatfs_partition_test(const esp_partition_t* partition, con
|
|||||||
(long unsigned int)partition->size
|
(long unsigned int)partition->size
|
||||||
);
|
);
|
||||||
|
|
||||||
ESP_LOGI(TAG, "Erasing partition");
|
|
||||||
ESP_ERROR_CHECK(esp_partition_erase_range(partition, 0, partition->size));
|
|
||||||
|
|
||||||
ESP_LOGI(TAG, "Formatting FAT filesystem");
|
ESP_LOGI(TAG, "Formatting FAT filesystem");
|
||||||
err = esp_vfs_fat_spiflash_format_rw_wl(base_path, partition->label);
|
err = esp_vfs_fat_spiflash_format_rw_wl(base_path, partition->label);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
|
Reference in New Issue
Block a user