Merge pull request #15306 from bergzand/pr/suit_stor_flashwrite/fix_offset
suit/storage/flashwrite: use riotboot_slot_offset
This commit is contained in:
commit
f46572a308
@ -68,8 +68,7 @@ def publish(server_dir, server_url, app_ver, keys='default', latest_name=None):
|
||||
|
||||
def wait_for_update(child):
|
||||
return child.expect([r"Fetching firmware \|[█ ]+\|\s+\d+\%",
|
||||
"riotboot_flashwrite: riotboot flashing "
|
||||
"completed successfully"],
|
||||
"Finalizing payload store"],
|
||||
timeout=UPDATING_TIMEOUT)
|
||||
|
||||
|
||||
|
||||
@ -174,7 +174,7 @@ static bool _flashwrite_match_offset(const suit_storage_t *storage,
|
||||
(void)storage;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user