Skip to content

Commit 72179c9

Browse files
de-nordicjukkar
authored andcommitted
[nrf noup] loader: Use BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY
fixup! [nrf noup] boot: bootutil: loader: Add s0/s1 checking of MCUboot image The commit replaces BOOT_PRIMARY_SLOT and BOOT_SECONDARY_SLOT with BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY respectively. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 98b9e4b commit 72179c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boot/bootutil/src/loader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ boot_validate_slot(struct boot_loader_state *state, int slot,
10841084
*/
10851085
int version_check;
10861086

1087-
version_check = boot_version_cmp(&boot_img_hdr(state, BOOT_SECONDARY_SLOT)->ih_ver,
1087+
version_check = boot_version_cmp(&boot_img_hdr(state, BOOT_SLOT_SECONDARY)->ih_ver,
10881088
&mcuboot_s0_s1_image_version);
10891089

10901090
/* Only update rc if the currently running version is newer */
@@ -1106,7 +1106,7 @@ boot_validate_slot(struct boot_loader_state *state, int slot,
11061106
*/
11071107
int version_check;
11081108

1109-
version_check = boot_version_cmp(&boot_img_hdr(state, BOOT_SECONDARY_SLOT)->ih_ver,
1109+
version_check = boot_version_cmp(&boot_img_hdr(state, BOOT_SLOT_SECONDARY)->ih_ver,
11101110
&mcuboot_s0_s1_image_version);
11111111

11121112
/* Only update rc if the currently running version is newer */

0 commit comments

Comments
 (0)