aboutsummaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-04-04 07:18:29 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-04-04 07:18:29 +0200
commitdf3a1e1b9d337c17e08faf41c6e3c50c35eb9a6c (patch)
treede4d4d68f1b93e58e689606a17d933fa69e8464e /docs/modules
parent7c11d85e1ea0d01e5e1b4d6564d258663d66509b (diff)
Avoid write to not-erased magic
This introduces an additional marker to the state partition right after the magic which indicates whether the current progress is valid or not. Validation in tests that we never write without an erase is added. There is currently a FIXME in the FirmwareUpdater. Let me know if we should take the erase value as a parameter. I opened a feature request in embedded-storage to get this value in the trait. Before this, the assumption about ERASE_VALUE=0xFF was the same.
Diffstat (limited to 'docs/modules')
0 files changed, 0 insertions, 0 deletions