From 544a2f4e005f8eb4defb324b7f9d907e704aa68f Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 4 Aug 2023 03:59:35 +0200 Subject: [PATCH] Prefer EXFAT (?) pls no brokie --- lib/fatfs/ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fatfs/ff.c b/lib/fatfs/ff.c index d39089578..2ce5f8b15 100644 --- a/lib/fatfs/ff.c +++ b/lib/fatfs/ff.c @@ -5371,7 +5371,7 @@ FRESULT f_mkfs ( /* Pre-determine the FAT type */ do { if (_FS_EXFAT && (opt & FM_EXFAT)) { /* exFAT possible? */ - if ((opt & FM_ANY) == FM_EXFAT || sz_vol >= 0x4000000 || au > 128) { /* exFAT only, vol >= 64Ms or au > 128s ? */ + if ((opt & FM_ANY) == FM_EXFAT || sz_vol >= 0x2000000 || au > 128) { /* exFAT only, vol >= 32Ms or au > 128s ? */ fmt = FS_EXFAT; break; } }