Browse Source

Adjust some HAL formatting

pull/1/head
Scott Lahteine 6 years ago
parent
commit
8489673cea
  1. 4
      Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp
  2. 4
      Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp

4
Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp

@ -106,9 +106,7 @@ uint16_t EE_Initialize(void) {
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 */

4
Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp

@ -106,9 +106,7 @@ uint16_t EE_Initialize(void) {
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 */

Loading…
Cancel
Save