From: Alex Maestas Date: Mon, 5 Aug 2024 23:09:24 +0000 (+0000) Subject: in filesystem_init, handle the error code correctly X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=ca1da33b8241b91446c966babac7617851af53d2;p=sensor-watch.git in filesystem_init, handle the error code correctly --- diff --git a/movement/filesystem.c b/movement/filesystem.c index b5e3fca..a1953bc 100644 --- a/movement/filesystem.c +++ b/movement/filesystem.c @@ -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()); }