Skip to content

Commit e3f9356

Browse files
maass-hamburgkartben
authored andcommitted
dfu: boot: mcuboot: fix boot_is_img_confirmed
Fix image confirmed for Direct XIP. Signed-off-by: Fin Maaß <[email protected]>
1 parent 411c692 commit e3f9356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/dfu/boot/mcuboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ bool boot_is_img_confirmed(void)
227227
const struct flash_area *fa;
228228
int rc;
229229

230-
rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY, &fa);
230+
rc = flash_area_open(ACTIVE_SLOT_FLASH_AREA_ID, &fa);
231231
if (rc) {
232232
return false;
233233
}

0 commit comments

Comments
 (0)