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