suit/storage/flashwrite: use riotboot_slot_offset
Fixes an issue with riotboot on the stm32f1 and other MCUs where the flash is remapped to a different region
This commit is contained in:
parent
e4164e3924
commit
ec4803728d
@ -174,7 +174,7 @@ static bool _flashwrite_match_offset(const suit_storage_t *storage,
|
|||||||
(void)storage;
|
(void)storage;
|
||||||
|
|
||||||
int target_slot = riotboot_slot_other();
|
int target_slot = riotboot_slot_other();
|
||||||
uintptr_t slot_start = (intptr_t)riotboot_slot_get_hdr(target_slot);
|
uintptr_t slot_start = (uintptr_t)riotboot_slot_offset(target_slot);
|
||||||
|
|
||||||
return (slot_start == (uintptr_t)offset);
|
return (slot_start == (uintptr_t)offset);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user