Skip to content
Commit df0cc505 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Refactor routines that read swap status data



When doing a swap some of the information required by the process
is temporarily written to the status area; previously each data
writing routines tried to find the correct area by looking for the
magic and assuming that data is located there (because everything
fits a single sector). This moves the code to find the magic into
a separate routine that is now used by others.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 9d160091
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment