]> git.earman.xyz Git - sensor-watch.git/commitdiff
in filesystem_init, handle the error code correctly
authorAlex Maestas <git@se30.xyz>
Mon, 5 Aug 2024 23:09:24 +0000 (23:09 +0000)
committerAlex Maestas <git@se30.xyz>
Mon, 5 Aug 2024 23:09:24 +0000 (23:09 +0000)
movement/filesystem.c

index b5e3fcab4ffe7119172882aa447350928b4ba620..a1953bc6119615339b3dbd319a77065e1c784627 100644 (file)
@@ -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());
     }