From ff60b17ea73a5a7ebe4402475e4f6e64ae18c280 Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Thu, 9 Jan 2025 16:48:01 -0700 Subject: [PATCH] R0.15a patch 1 January 9, 2025 FatFs fails to load the FsInfo in FAT32 volumes and the f_getfree function will always be forced a full FAT scan which takes a long time. This problem was appeared at R0.15a and reported via an e-mail. --- source/ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ff.c b/source/ff.c index ccd7b15..a20fa82 100644 --- a/source/ff.c +++ b/source/ff.c @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------/ -/ FatFs - Generic FAT Filesystem Module R0.15a / +/ FatFs - Generic FAT Filesystem Module R0.15a w/patch 1 / /-----------------------------------------------------------------------------/ / / Copyright (C) 2024, ChaN, all right reserved. @@ -194,7 +194,7 @@ #define FSI_StrucSig 484 /* FAT32 FSI: Structure signature (DWORD) */ #define FSI_Free_Count 488 /* FAT32 FSI: Number of free clusters (DWORD) */ #define FSI_Nxt_Free 492 /* FAT32 FSI: Last allocated cluster (DWORD) */ -#define FSI_TrailSig 498 /* FAT32 FSI: Trailing signature (DWORD) */ +#define FSI_TrailSig 508 /* FAT32 FSI: Trailing signature (DWORD) */ #define MBR_Table 446 /* MBR: Offset of partition table in the MBR */ #define SZ_PTE 16 /* MBR: Size of a partition table entry */