Skip to content

Commit

Permalink
Lock during init of EFL backing store.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Jul 13, 2022
1 parent a09cf0b commit 8e70943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/chibios/drivers/wear_leveling/wear_leveling_efl.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ bool backing_store_init(void) {
bs_dprintf("Init\n");
flash = (BaseFlash *)&EFLD1;

// Need to re-lock the EFL, as if we've just had the bootloader executing it'll already be unlocked.
backing_store_lock();

const flash_descriptor_t *desc = flashGetDescriptor(flash);
uint32_t counter = 0;

Expand Down

0 comments on commit 8e70943

Please sign in to comment.