Commit 2f5b764
committed
Fix offset updating trailer: swap_and_final_erase
When wolfBoot_swap_and_final_erase() is invoked, it was calculating the
wrong offset, ending up erasing the third-last sector of the boot
partition.
This might cause erasing part of the firmware, eventually causing failed
boot.1 parent 21a4082 commit 2f5b764
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
0 commit comments