Skip to content

Commit

Permalink
Adjust some HAL formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 1, 2018
1 parent fb8a076 commit 8489673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Marlin/src/HAL/HAL_STM32F4/EEPROM_Emul/eeprom_emul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
6 changes: 2 additions & 4 deletions Marlin/src/HAL/HAL_STM32F7/EEPROM_Emul/eeprom_emul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8489673

Please sign in to comment.