diff --git a/radio/src/targets/taranis/flash_driver.cpp b/radio/src/targets/taranis/flash_driver.cpp index 85a51e42f..4a2bae743 100644 --- a/radio/src/targets/taranis/flash_driver.cpp +++ b/radio/src/targets/taranis/flash_driver.cpp @@ -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; }