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:
parent
4ebbacd65e
commit
b76f0a73bc
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue