Adjust some HAL formatting

This commit is contained in:
Scott Lahteine 2018-09-30 21:23:23 -05:00
parent fb8a07660a
commit 8489673cea
2 changed files with 4 additions and 8 deletions

View File

@ -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 */

View File

@ -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 */