Use the GFILE_NEED_NOAUTOSYNC for syncing in the write as well.
parent
bd68d6a00a
commit
1a2e98af96
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue