diff options
author | Braiden Kindt <braiden@kindt.dev> | 2021-02-14 23:42:57 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-03-10 23:50:40 +1100 |
commit | 85ea4ac0e56faca680aa03c41eb4009464401f07 (patch) | |
tree | 30880eaa1199fe784240ae143cfa9911426122cf | |
parent | 35c602d3b8e1ee2d06715c75fa0b4ca7a353372e (diff) | |
download | micropython-85ea4ac0e56faca680aa03c41eb4009464401f07.tar.gz micropython-85ea4ac0e56faca680aa03c41eb4009464401f07.zip |
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
4c3976bbcaf58266fdcaab264fee5b7a94a682e5
Fixes #6903.
-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 38710e2651..bdf7328f68 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -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; |