Skip to content

Commit 2fcfba1

Browse files
committed
boot: bootutil: Fix wrong define for single loader mode
The define for the number of slots for this mode was wrongly set to 2 when it should have been 1 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent dc571f0 commit 2fcfba1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

boot/bootutil/src/bootutil_priv.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ struct flash_area;
5454
#define NO_ACTIVE_SLOT UINT32_MAX
5555

5656
/** Number of image slots in flash; currently limited to two. */
57+
#if defined(MCUBOOT_SINGLE_APPLICATION_SLOT) || defined(MCUBOOT_SINGLE_APPLICATION_SLOT_RAM_LOAD)
58+
#define BOOT_NUM_SLOTS 1
59+
#else
5760
#define BOOT_NUM_SLOTS 2
61+
#endif
5862

5963
#if (defined(MCUBOOT_OVERWRITE_ONLY) + \
6064
defined(MCUBOOT_SWAP_USING_MOVE) + \

0 commit comments

Comments
 (0)