From a6218520e1c7463bc097e79ac5414c204633bac7 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Fri, 20 Sep 2024 12:09:59 +0530 Subject: [PATCH] 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 --- examples/security/flash_encryption/main/flash_encrypt_fatfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/security/flash_encryption/main/flash_encrypt_fatfs.c b/examples/security/flash_encryption/main/flash_encrypt_fatfs.c index 4b4c75f4ab..8959dadc07 100644 --- a/examples/security/flash_encryption/main/flash_encrypt_fatfs.c +++ b/examples/security/flash_encryption/main/flash_encrypt_fatfs.c @@ -68,9 +68,6 @@ static size_t example_fatfs_partition_test(const esp_partition_t* partition, con (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"); err = esp_vfs_fat_spiflash_format_rw_wl(base_path, partition->label); if (err != ESP_OK) {