From fd8f5e62e1cbfd9a108c2e6e125475c035452ea8 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 3 May 2017 12:51:24 +0100 Subject: [PATCH] FatFs: Apply patch ff_12c_p1.diff. --- firmware/chibios-portapack/ext/fatfs/src/ff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/chibios-portapack/ext/fatfs/src/ff.c b/firmware/chibios-portapack/ext/fatfs/src/ff.c index faac347b..86cdf239 100644 --- a/firmware/chibios-portapack/ext/fatfs/src/ff.c +++ b/firmware/chibios-portapack/ext/fatfs/src/ff.c @@ -3439,6 +3439,7 @@ FRESULT f_open ( fp->obj.sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Get object allocation info */ fp->obj.objsize = ld_qword(fs->dirbuf + XDIR_FileSize); fp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2; + fp->obj.n_frag = 0; } else #endif {