From 940656254d458714379b8c2bf7725486805320cb Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 25 Feb 2017 00:12:11 -0500 Subject: [PATCH] #364 --- firmware/hw_layer/stm32f4/mpu_util.cpp | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/firmware/hw_layer/stm32f4/mpu_util.cpp b/firmware/hw_layer/stm32f4/mpu_util.cpp index eca12acc1f..f7f9183404 100644 --- a/firmware/hw_layer/stm32f4/mpu_util.cpp +++ b/firmware/hw_layer/stm32f4/mpu_util.cpp @@ -347,22 +347,22 @@ BOR_Result_t BOR_Set(BOR_Level_t BORValue) { } - FLASH_OBProgramInitTypeDef FLASH_Handle; - - FLASH_Handle.BORLevel = (uint32_t)BORValue; - FLASH_Handle.OptionType = OPTIONBYTE_BOR; - - HAL_FLASH_OB_Unlock(); - - HAL_FLASHEx_OBProgram(&FLASH_Handle); - - HAL_StatusTypeDef status = HAL_FLASH_OB_Launch(); - - HAL_FLASH_OB_Lock(); - - if (status != HAL_OK) { - return BOR_Result_Error; - } +// FLASH_OBProgramInitTypeDef FLASH_Handle; +// +// FLASH_Handle.BORLevel = (uint32_t)BORValue; +// FLASH_Handle.OptionType = OPTIONBYTE_BOR; +// +// HAL_FLASH_OB_Unlock(); +// +// HAL_FLASHEx_OBProgram(&FLASH_Handle); +// +// HAL_StatusTypeDef status = HAL_FLASH_OB_Launch(); +// +// HAL_FLASH_OB_Lock(); +// +// if (status != HAL_OK) { +// return BOR_Result_Error; +// } return BOR_Result_Ok; }