Skip to content

Commit

Permalink
Fix typo on store_erase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jpe230 committed Oct 12, 2022
1 parent 2dc6b43 commit 40a8d85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bool backing_store_erase(void) {
FLASH_Status status;
for (int i = 0; i < (WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT); ++i) {
status = FLASH_EraseSector(WEAR_LEVELING_SN32_EMULATION_BASE_PAGE_ADDRESS + (i * WEAR_LEVELING_SN32_PAGE_SIZE));
if (status != FLASH_FAIL) {
if (status == FLASH_FAIL) {
ret = false;
}
}
Expand Down

0 comments on commit 40a8d85

Please sign in to comment.