Tools: make HAL_FLASH_PROTECTION a boolean, stop checking for definition

This commit is contained in:
Peter Barker authored and Peter Barker committed 2022-08-16 08:10:16 +10:00
1 parent ecde9f8c3f
commit 18f3a6bc69
1 file changed
+1 -1
+1 -1
View File
@@ -77,7 +77,7 @@ int main(void)
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
#endif
#ifdef HAL_FLASH_PROTECTION
#if HAL_FLASH_PROTECTION
stm32_flash_unprotect_flash();
#endif