stm32/main: Fix passing state.reset_mode to init_flash_fs.
state.reset_mode is updated by `MICROPY_BOARD_BEFORE_SOFT_RESET_LOOP` but
not passed to `init_flash_fs`, and so factory reset is not executed on
boards that do not have a bootloader. This bug was introduced by
4c3976bbca
Fixes #6903.
This commit is contained in:
parent
35c602d3b8
commit
85ea4ac0e5
|
@ -531,7 +531,7 @@ soft_reset:
|
|||
// Create it if needed, mount in on /flash, and set it as current dir.
|
||||
bool mounted_flash = false;
|
||||
#if MICROPY_HW_FLASH_MOUNT_AT_BOOT
|
||||
mounted_flash = init_flash_fs(reset_mode);
|
||||
mounted_flash = init_flash_fs(state.reset_mode);
|
||||
#endif
|
||||
|
||||
bool mounted_sdcard = false;
|
||||
|
|
Loading…
Reference in New Issue