mirror of https://github.com/ARMmbed/mbed-os.git
littlefs: Adopted the block device sync function
Required to garuntee that data is flushed all the way down to the disk level when a file is synced or closed.pull/5926/head
parent
a4f8af9d5b
commit
6e5f2439a3
|
|
@ -102,7 +102,8 @@ static int lfs_bd_erase(const struct lfs_config *c, lfs_block_t block)
|
|||
|
||||
static int lfs_bd_sync(const struct lfs_config *c)
|
||||
{
|
||||
return 0;
|
||||
BlockDevice *bd = (BlockDevice *)c->context;
|
||||
return bd->sync();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue