Commit edc4229
Daniel Fedai Larsen
Fix wolfBoot_update_trigger sector calculation
wolfBoot_update_trigger is called to initiate an update on the next
boot. It does this by modifying the metadata in the last sector
(selecting one of the two if NVM_FLASH_WRITEONCE is defined).
There's a check to handle the case where the PART_UPDATE_ENDFLAGS isn't
aligned with the WOLFBOOT_SECTOR_SIZE. However, this check was wrong, as
the modulo of these two macros is 0 when aligned, so the check should be
!= 0.1 parent 7008f68 commit edc4229
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
| 745 | + | |
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| |||
0 commit comments