Skip to content

Commit

Permalink
Fixup datatype.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Nov 8, 2023
1 parent c5a4927 commit 2ba5530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/chibios/drivers/wear_leveling/wear_leveling_efl.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ bool backing_store_lock(void) {
}

static backing_store_int_t backing_store_safe_read_from_location(backing_store_int_t *loc) {
uint32_t value;
backing_store_int_t value;
is_issuing_read = true;
ecc_error_occurred = false;
value = ~(*loc);
Expand All @@ -146,7 +146,7 @@ static backing_store_int_t backing_store_safe_read_from_location(backing_store_i
bool backing_store_read(uint32_t address, backing_store_int_t *value) {
uint32_t offset = (base_offset + address);
backing_store_int_t *loc = (backing_store_int_t *)flashGetOffsetAddress(flash, offset);
uint32_t tmp = backing_store_safe_read_from_location(loc);
backing_store_int_t tmp = backing_store_safe_read_from_location(loc);

if (ecc_error_occurred) {
bs_dprintf("Failed to read from backing store, ECC error detected\n");
Expand Down

0 comments on commit 2ba5530

Please sign in to comment.