stm32/main: Fix SKIPSD file detection so SD card is mounted by default.

The condition for skipping was accidentally inverted in
7723dac337

Fixes issue #5400.
This commit is contained in:
Jim Mussared 2019-12-09 15:12:51 +11:00 committed by Damien George
parent 4ebbacd65e
commit b76f0a73bc
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}