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:
Aditya Patwardhan
2024-09-20 12:09:59 +05:30
parent 564d777018
commit a6218520e1

View File

@@ -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) {