mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
in filesystem_init, handle the error code correctly
This commit is contained in:
parent
7000d08ba5
commit
ca1da33b82
|
@ -120,7 +120,7 @@ bool filesystem_init(void) {
|
|||
printf("Ignore that error! Formatting filesystem...\r\n");
|
||||
err = lfs_format(&lfs, &cfg);
|
||||
if (err < 0) return false;
|
||||
err = lfs_mount(&lfs, &cfg) == LFS_ERR_OK;
|
||||
err = lfs_mount(&lfs, &cfg);
|
||||
printf("Filesystem mounted with %ld bytes free.\r\n", filesystem_get_free_space());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue