Change default alloc size to 4kB

This commit is contained in:
Ken Van Hoeylandt 2026-03-02 21:46:50 +01:00
parent 17cdec1a1f
commit b40d595a98

View File

@ -21,7 +21,7 @@ bool SdmmcDevice::mountInternal(const std::string& newMountPath) {
esp_vfs_fat_sdmmc_mount_config_t mount_config = { esp_vfs_fat_sdmmc_mount_config_t mount_config = {
.format_if_mount_failed = config->formatOnMountFailed, .format_if_mount_failed = config->formatOnMountFailed,
.max_files = config->maxOpenFiles, .max_files = config->maxOpenFiles,
.allocation_unit_size = config->allocUnitSize, .allocation_unit_size = 512 * 8,
.disk_status_check_enable = config->statusCheckEnabled, .disk_status_check_enable = config->statusCheckEnabled,
.use_one_fat = false .use_one_fat = false
}; };