aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-07-02 09:36:00 +1000
committerinmarket <andrewh@inmarket.com.au>2014-07-02 09:36:00 +1000
commit1a2e98af967d4433e98c5fa388cb816b1af46e2d (patch)
tree7c397c01ee7fe44da874b5f77357485a76494b42 /src/gfile
parentbd68d6a00a5e9092a05d736916ebbdafe8b31f5b (diff)
downloaduGFX-1a2e98af967d4433e98c5fa388cb816b1af46e2d.tar.gz
uGFX-1a2e98af967d4433e98c5fa388cb816b1af46e2d.tar.bz2
uGFX-1a2e98af967d4433e98c5fa388cb816b1af46e2d.zip
Use the GFILE_NEED_NOAUTOSYNC for syncing in the write as well.
Diffstat (limited to 'src/gfile')
-rw-r--r--src/gfile/inc_fatfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gfile/inc_fatfs.c b/src/gfile/inc_fatfs.c
index 447b8a71..8d7233e7 100644
--- a/src/gfile/inc_fatfs.c
+++ b/src/gfile/inc_fatfs.c
@@ -174,7 +174,9 @@ static int fatfsWrite(GFILE* f, const void* buf, int size)
int wr;
f_write( (FIL*)f->obj, buf, size, (UINT*)&wr);
- f_sync( (FIL*)f->obj );
+ #if !GFILE_NEED_NOAUTOSYNC
+ f_sync( (FIL*)f->obj );
+ #endif
return wr;
}