summaryrefslogtreecommitdiff
path: root/atmel-samd
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-01-19 14:26:57 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-01-19 14:26:57 -0800
commit749d22b5e63696f67356884b0b35ecebbabb001e (patch)
tree08a1503e70b7fff0881f4d077733a939a02a6566 /atmel-samd
parent79024f3fb94885942be5539e70a3fb24a77b1ca7 (diff)
atmel-samd: stop overwriting the flash FS.
Diffstat (limited to 'atmel-samd')
-rw-r--r--atmel-samd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c
index e09778445..561de8316 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