@@ -46,7 +46,10 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles,
46
46
}
47
47
48
48
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 ,
50
53
.use_one_fat = false
51
54
};
52
55
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) {
99
102
}
100
103
// Now do a mount with format_if_fail (which it will)
101
104
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
104
106
};
105
107
result = esp_vfs_fat_spiflash_mount_rw_wl (" /format_ffat" , partitionLabel, &conf, &temp_handle);
106
108
esp_vfs_fat_spiflash_unmount_rw_wl (" /format_ffat" , temp_handle);
0 commit comments