minor clean up

This commit is contained in:
hathach committed 2018-10-18 23:50:46 +07:00
1 parent e76ff0e76f
commit 191baf744a
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -206,8 +206,8 @@ bool LittleFS::begin (void)
if ( LFS_ERR_CORRUPT == err )
{
LOG_LV1("IFLASH", "Format internal file system");
VERIFY_LFS(lfs_format(&_lfs, &_lfs_cfg));
VERIFY_LFS(lfs_mount(&_lfs, &_lfs_cfg));
VERIFY_LFS(lfs_format(&_lfs, &_lfs_cfg), false);
VERIFY_LFS(lfs_mount(&_lfs, &_lfs_cfg), false);
}
return true;