1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Need to call FLASH_OB_Launch after setting the BOR bits

This commit is contained in:
James Cotton 2012-06-03 16:45:18 -05:00
parent be72d24c5f
commit a3df27ab65

View File

@ -221,6 +221,8 @@ void check_bor()
if(bor != OB_BOR_LEVEL3) {
FLASH_OB_Unlock();
FLASH_OB_BORConfig(OB_BOR_LEVEL3);
FLASH_OB_Launch();
while(FLASH_WaitForLastOperation() == FLASH_BUSY);
FLASH_OB_Lock();
while(FLASH_WaitForLastOperation() == FLASH_BUSY);
}