Skip to content

Commit 98b6e78

Browse files
de-nordicjukkar
authored andcommitted
[nrf noup] loader: Use BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY
nrf-squash! [nrf noup] boot: Add support for NSIB and multi-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 3b4341c commit 98b6e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ boot_validated_swap_type(struct boot_loader_state *state,
14901490
{
14911491
const struct flash_area *primary_fa;
14921492
rc = flash_area_open(flash_area_id_from_multi_image_slot(
1493-
BOOT_CURR_IMG(state), BOOT_PRIMARY_SLOT),
1493+
BOOT_CURR_IMG(state), BOOT_SLOT_PRIMARY),
14941494
&primary_fa);
14951495
if (rc != 0) {
14961496
return BOOT_SWAP_TYPE_FAIL;

0 commit comments

Comments
 (0)