[Taranis] Fix bootloader freeze on USB disconnect
This commit is contained in:
@@ -37,7 +37,7 @@ void unlockFlash()
|
|||||||
|
|
||||||
void lockFlash()
|
void lockFlash()
|
||||||
{
|
{
|
||||||
while (!(FLASH->SR & FLASH_SR_BSY));
|
while (FLASH->SR & FLASH_SR_BSY);
|
||||||
FLASH->CR |= FLASH_CR_LOCK;
|
FLASH->CR |= FLASH_CR_LOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user