don't reformat filesystem on every boot
This commit is contained in:
@@ -142,7 +142,7 @@ bool filesystem_init(void) {
|
|||||||
|
|
||||||
// reformat if we can't mount the filesystem
|
// reformat if we can't mount the filesystem
|
||||||
// this should only happen on the first boot
|
// this should only happen on the first boot
|
||||||
if (1) {
|
if (err < 0) {
|
||||||
printf("Ignore that error! Formatting filesystem...\r\n");
|
printf("Ignore that error! Formatting filesystem...\r\n");
|
||||||
err = lfs_format(&eeprom_filesystem, &watch_lfs_cfg);
|
err = lfs_format(&eeprom_filesystem, &watch_lfs_cfg);
|
||||||
if (err < 0) return false;
|
if (err < 0) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user