From ca1da33b8241b91446c966babac7617851af53d2 Mon Sep 17 00:00:00 2001 From: Alex Maestas Date: Mon, 5 Aug 2024 23:09:24 +0000 Subject: [PATCH] in filesystem_init, handle the error code correctly --- movement/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }