Use the GFILE_NEED_NOAUTOSYNC for syncing in the write as well.
This commit is contained in:
parent
bd68d6a00a
commit
1a2e98af96
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue