Skip to content

Commit 54f1c22

Browse files
committed
fix(build): Fix warning in FFat
1 parent f77ce04 commit 54f1c22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: libraries/FFat/src/FFat.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ 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, .max_files = maxOpenFiles, .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false,
50+
.use_one_fat = false
5051
};
5152
esp_err_t err = esp_vfs_fat_spiflash_mount_rw_wl(basePath, partitionLabel, &conf, &_wl_handle);
5253
if (err) {
@@ -98,7 +99,8 @@ bool F_Fat::format(bool full_wipe, char *partitionLabel) {
9899
}
99100
// Now do a mount with format_if_fail (which it will)
100101
esp_vfs_fat_mount_config_t conf = {
101-
.format_if_mount_failed = true, .max_files = 1, .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false
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
102104
};
103105
result = esp_vfs_fat_spiflash_mount_rw_wl("/format_ffat", partitionLabel, &conf, &temp_handle);
104106
esp_vfs_fat_spiflash_unmount_rw_wl("/format_ffat", temp_handle);

0 commit comments

Comments
 (0)