Use the GFILE_NEED_NOAUTOSYNC for syncing in the write as well.

ugfx_release_2.6
inmarket 2014-07-02 09:36:00 +10:00
parent bd68d6a00a
commit 1a2e98af96
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}