Tools: make HAL_FLASH_PROTECTION a boolean, stop checking for definition

This commit is contained in:
Peter Barker 2022-08-15 13:54:08 +10:00 committed by Peter Barker
parent ecde9f8c3f
commit 18f3a6bc69
1 changed files with 1 additions and 1 deletions

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