diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2019-12-09 15:12:51 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-12-09 17:01:30 +1100 |
commit | b76f0a73bc31d1c8871ff00d2f93b5805b3b6315 (patch) | |
tree | fbc961885d6fb964801079ad073a41a6ca2f0cb9 | |
parent | 4ebbacd65eec4c0fde8ceb32274c06f5e3de3af6 (diff) |
stm32/main: Fix SKIPSD file detection so SD card is mounted by default.
The condition for skipping was accidentally inverted in
7723dac3371ccf081c2490b33b69492dc42818bd
Fixes issue #5400.
-rw-r--r-- | ports/stm32/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 8cb6ed1e3..fd9cdd6f6 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -644,7 +644,7 @@ soft_reset: // if an SD card is present then mount it on /sd/ if (sdcard_is_present()) { // if there is a file in the flash called "SKIPSD", then we don't mount the SD card - if (!mounted_flash || mp_vfs_import_stat("SKIPSD") == MP_IMPORT_STAT_FILE) { + if (!mounted_flash || mp_vfs_import_stat("SKIPSD") == MP_IMPORT_STAT_NO_EXIST) { mounted_sdcard = init_sdcard_fs(); } } |