Skip to content

Commit a290437

Browse files
de-nordicjukkar
authored andcommitted
[nrf noup] loader: Use BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY
nrf-squash! [nrf noup] treewide: Add support for sysbuild assigned images 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 ea6bb5c commit a290437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/swap_nsib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void nsib_swap_run(struct boot_loader_state *state, struct boot_status *bs)
4040

4141
BOOT_LOG_INF("Starting swap using nsib algorithm.");
4242

43-
sector_sz = boot_img_sector_size(state, BOOT_SECONDARY_SLOT, 0);
43+
sector_sz = boot_img_sector_size(state, BOOT_SLOT_SECONDARY, 0);
4444

4545
#if (CONFIG_NCS_IS_VARIANT_IMAGE)
4646
rc = flash_area_open(PM_S0_ID, &fap_pri);

0 commit comments

Comments
 (0)