Use the GFILE_NEED_NOAUTOSYNC for syncing in the write as well.

This commit is contained in:
inmarket 2014-07-02 09:36:00 +10:00
parent bd68d6a00a
commit 1a2e98af96

View file

@ -174,7 +174,9 @@ static int fatfsWrite(GFILE* f, const void* buf, int size)
int wr; int wr;
f_write( (FIL*)f->obj, buf, size, (UINT*)&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; return wr;
} }