From fb23112160f8148d4729b3a262e6d532423db61c 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] [nrf fromtree] 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ß (cherry picked from commit e3f935650b976f098d19ff304344e83103ad0491) --- 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 4a66befaa91..6710a793e56 100644 --- a/subsys/dfu/boot/mcuboot.c +++ b/subsys/dfu/boot/mcuboot.c @@ -233,7 +233,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; }