Skip to content

Commit a621852

Browse files
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
1 parent 564d777 commit a621852

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/security/flash_encryption/main/flash_encrypt_fatfs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ static size_t example_fatfs_partition_test(const esp_partition_t* partition, con
6868
(long unsigned int)partition->size
6969
);
7070

71-
ESP_LOGI(TAG, "Erasing partition");
72-
ESP_ERROR_CHECK(esp_partition_erase_range(partition, 0, partition->size));
73-
7471
ESP_LOGI(TAG, "Formatting FAT filesystem");
7572
err = esp_vfs_fat_spiflash_format_rw_wl(base_path, partition->label);
7673
if (err != ESP_OK) {

0 commit comments

Comments
 (0)