[Taranis] Fix bootloader freeze on USB disconnect

This commit is contained in:
Andre Bernet
2016-08-27 13:31:15 +02:00
parent 9e334bfc84
commit c5346f6846
+1 -1
View File
@@ -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;
}