From 749d22b5e63696f67356884b0b35ecebbabb001e Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 19 Jan 2017 14:26:57 -0800 Subject: [PATCH] atmel-samd: stop overwriting the flash FS. --- atmel-samd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atmel-samd/main.c b/atmel-samd/main.c index e09778445a..561de8316c 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -74,7 +74,7 @@ void init_flash_fs(void) { // try to mount the flash FRESULT res = f_mount(&vfs->fatfs, vfs->str, 1); - if (true || res == FR_NO_FILESYSTEM) { + if (res == FR_NO_FILESYSTEM) { // no filesystem, or asked to reset it, so create a fresh one // We are before USB initializes so temporarily undo the USB_WRITEABLE