mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
AP_Bootloader: allow flash to be unprotected from the bootloader
This commit is contained in:
parent
c01b1801c8
commit
b32638b29e
@ -76,6 +76,10 @@ int main(void)
|
||||
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
|
||||
#endif
|
||||
|
||||
#ifdef HAL_FLASH_PROTECTION
|
||||
stm32_flash_unprotect_flash();
|
||||
#endif
|
||||
|
||||
#ifndef NO_FASTBOOT
|
||||
enum rtc_boot_magic m = check_fast_reboot();
|
||||
bool was_watchdog = stm32_was_watchdog_reset();
|
||||
|
Loading…
Reference in New Issue
Block a user