Skip to content

Commit a72f4f3

Browse files
de-nordicjukkar
authored andcommitted
[nrf noup] loader: Use BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY
nrf-squash! [nrf noup] loader: introduced cleanup of unusable secondary slot 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 6108352 commit a72f4f3

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
@@ -1409,7 +1409,7 @@ static void sec_slot_cleanup_if_unusable(void)
14091409
const struct flash_area *secondary_fa;
14101410
int rc;
14111411

1412-
rc = flash_area_open(flash_area_id_from_multi_image_slot(idx, BOOT_SECONDARY_SLOT),
1412+
rc = flash_area_open(flash_area_id_from_multi_image_slot(idx, BOOT_SLOT_SECONDARY),
14131413
&secondary_fa);
14141414
if (!rc) {
14151415
rc = flash_area_erase(secondary_fa, 0, secondary_fa->fa_size);

0 commit comments

Comments
 (0)