@@ -46,7 +46,10 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles,
4646 }
4747
4848 esp_vfs_fat_mount_config_t conf = {
49- .format_if_mount_failed = formatOnFail, .max_files = maxOpenFiles, .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false ,
49+ .format_if_mount_failed = formatOnFail,
50+ .max_files = maxOpenFiles,
51+ .allocation_unit_size = CONFIG_WL_SECTOR_SIZE,
52+ .disk_status_check_enable = false ,
5053 .use_one_fat = false
5154 };
5255 esp_err_t err = esp_vfs_fat_spiflash_mount_rw_wl (basePath, partitionLabel, &conf, &_wl_handle);
@@ -99,8 +102,7 @@ bool F_Fat::format(bool full_wipe, char *partitionLabel) {
99102 }
100103 // Now do a mount with format_if_fail (which it will)
101104 esp_vfs_fat_mount_config_t conf = {
102- .format_if_mount_failed = true , .max_files = 1 , .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false ,
103- .use_one_fat = false
105+ .format_if_mount_failed = true , .max_files = 1 , .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false , .use_one_fat = false
104106 };
105107 result = esp_vfs_fat_spiflash_mount_rw_wl (" /format_ffat" , partitionLabel, &conf, &temp_handle);
106108 esp_vfs_fat_spiflash_unmount_rw_wl (" /format_ffat" , temp_handle);
0 commit comments