From 8489673cea9ac4251f4499018ffa3a3e3756cbcb Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 30 Sep 2018 21:23:23 -0500 Subject: [PATCH] Adjust some HAL formatting --- Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp | 6 ++---- Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp b/Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp index 7be880ace0..0e313c1b46 100644 --- a/Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp +++ b/Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp @@ -103,12 +103,10 @@ uint16_t EE_Initialize(void) { case ERASED: if (PageStatus1 == VALID_PAGE) { /* Page0 erased, Page1 valid */ /* Erase Page0 */ - if(!EE_VerifyPageFullyErased(PAGE0_BASE_ADDRESS)) { + if (!EE_VerifyPageFullyErased(PAGE0_BASE_ADDRESS)) { FlashStatus = HAL_FLASHEx_Erase(&pEraseInit, &SectorError); /* If erase operation was failed, a Flash error code is returned */ - if (FlashStatus != HAL_OK) { - return FlashStatus; - } + if (FlashStatus != HAL_OK) return FlashStatus; } } else if (PageStatus1 == RECEIVE_DATA) { /* Page0 erased, Page1 receive */ diff --git a/Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp b/Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp index d28577758c..10b3219e9a 100644 --- a/Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp +++ b/Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp @@ -103,12 +103,10 @@ uint16_t EE_Initialize(void) { case ERASED: if (PageStatus1 == VALID_PAGE) { /* Page0 erased, Page1 valid */ /* Erase Page0 */ - if(!EE_VerifyPageFullyErased(PAGE0_BASE_ADDRESS)) { + if (!EE_VerifyPageFullyErased(PAGE0_BASE_ADDRESS)) { FlashStatus = HAL_FLASHEx_Erase(&pEraseInit, &SectorError); /* If erase operation was failed, a Flash error code is returned */ - if (FlashStatus != HAL_OK) { - return FlashStatus; - } + if (FlashStatus != HAL_OK) return FlashStatus; } } else if (PageStatus1 == RECEIVE_DATA) { /* Page0 erased, Page1 receive */