From e3f935650b976f098d19ff304344e83103ad0491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 27 Nov 2024 10:20:20 +0100 Subject: [PATCH] dfu: boot: mcuboot: fix boot_is_img_confirmed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix image confirmed for Direct XIP. Signed-off-by: Fin Maaß --- subsys/dfu/boot/mcuboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/dfu/boot/mcuboot.c b/subsys/dfu/boot/mcuboot.c index dde9f8af579..93d58cb5b6c 100644 --- a/subsys/dfu/boot/mcuboot.c +++ b/subsys/dfu/boot/mcuboot.c @@ -227,7 +227,7 @@ bool boot_is_img_confirmed(void) const struct flash_area *fa; int rc; - rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY, &fa); + rc = flash_area_open(ACTIVE_SLOT_FLASH_AREA_ID, &fa); if (rc) { return false; }