fatfs/test: use 16k cluster size to speed up formatting

This commit is contained in:
Ivan Grokhotkov 2018-03-30 18:40:06 +08:00
parent 4a2489b99a
commit e20e64ace9

View File

@ -39,7 +39,8 @@ static void test_setup(void)
sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT();
esp_vfs_fat_sdmmc_mount_config_t mount_config = {
.format_if_mount_failed = true,
.max_files = 5
.max_files = 5,
.allocation_unit_size = 16 * 1024
};
TEST_ESP_OK(esp_vfs_fat_sdmmc_mount("/sdcard", &host, &slot_config, &mount_config, NULL));
}