From 30358e052640bba56c3889d372ad58745a494a68 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 6 Feb 2021 00:46:40 -0500 Subject: [PATCH] reducing code duplication --- firmware/hw_layer/ports/stm32/stm32_common.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/hw_layer/ports/stm32/stm32_common.cpp b/firmware/hw_layer/ports/stm32/stm32_common.cpp index 75147f695a..52a73c63e3 100644 --- a/firmware/hw_layer/ports/stm32/stm32_common.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_common.cpp @@ -14,7 +14,7 @@ #include "stm32f4xx_hal_flash.h" #elif defined(STM32F7XX) #include "stm32f7xx_hal_flash.h" -#else +#elif defined(STM32H7XX) #include "stm32h7xx_hal_flash.h" #endif @@ -339,6 +339,8 @@ bool isValidSerialRxPin(brain_pin_e pin) { #endif /*EFI_AUX_SERIAL*/ +#if EFI_PROD_CODE + BOR_Level_t BOR_Get(void) { FLASH_OBProgramInitTypeDef FLASH_Handle; @@ -381,3 +383,4 @@ void baseMCUInit(void) { BOR_Set(BOR_Level_1); // one step above default value } +#endif // EFI_PROD_CODE