Skip to content

Commit 2e72ea9

Browse files
eightyccdhalbert
andauthored
Update lib/oofatfs/ff.c
Co-authored-by: Dan Halbert <[email protected]>
1 parent 6d1b170 commit 2e72ea9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/oofatfs/ff.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5422,7 +5422,8 @@ FRESULT f_mkfs (
54225422
)
54235423
{
54245424
const UINT n_fats = 1; /* Number of FATs for FAT/FAT32 volume (1 or 2) */
5425-
UINT n_rootdir = 512; /* Number of root directory entries for FAT volume */
5425+
// CIRCUITPY-CHANGE: Make number of root directory entries changeable. See below.
5426+
UINT n_rootdir = 512; /* Default number of root directory entries for FAT volume */
54265427
static const WORD cst[] = {1, 4, 16, 64, 256, 512, 0}; /* Cluster size boundary for FAT volume (4Ks unit) */
54275428
#if FF_MKFS_FAT32
54285429
static const WORD cst32[] = {1, 2, 4, 8, 16, 32, 0}; /* Cluster size boundary for FAT32 volume (128Ks unit) */

0 commit comments

Comments
 (0)