mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Fix boot loop if mass storage mode init fails
The logic already performed a reboot if mass storage init failed, but it never reset the boot vector value so it continued to contain the `MSC_MAGIC` value leading to a boot loop. Also fixed fixed the F7 version of `mscWaitForButton()` as it was using the F4 vector.
This commit is contained in:
parent
d3aa5855ce
commit
0ed1fbc609
4 changed files with 22 additions and 7 deletions
|
@ -447,7 +447,7 @@ void init(void)
|
|||
if (mscStart() == 0) {
|
||||
mscWaitForButton();
|
||||
} else {
|
||||
NVIC_SystemReset();
|
||||
systemResetFromMsc();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue