don't reformat filesystem on every boot

This commit is contained in:
joeycastillo 2024-10-27 14:30:58 -04:00
parent 83c7f18dd0
commit 59b58b5499

View File

@ -142,7 +142,7 @@ bool filesystem_init(void) {
// reformat if we can't mount the filesystem
// this should only happen on the first boot
if (1) {
if (err < 0) {
printf("Ignore that error! Formatting filesystem...\r\n");
err = lfs_format(&eeprom_filesystem, &watch_lfs_cfg);
if (err < 0) return false;