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");
|
printf("Ignore that error! Formatting filesystem...\r\n");
|
||||||
err = lfs_format(&lfs, &cfg);
|
err = lfs_format(&lfs, &cfg);
|
||||||
if (err < 0) return false;
|
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());
|
printf("Filesystem mounted with %ld bytes free.\r\n", filesystem_get_free_space());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user