Commit 4e659a94 authored by Jamie McCrae's avatar Jamie McCrae
Browse files

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: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit 2fcfba13)
parent 8f6f4b4b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -52,7 +52,11 @@ struct flash_area;
#define BOOT_TMPBUF_SZ  256

/** Number of image slots in flash; currently limited to two. */
#if defined(MCUBOOT_SINGLE_APPLICATION_SLOT) || defined(MCUBOOT_SINGLE_APPLICATION_SLOT_RAM_LOAD)
#define BOOT_NUM_SLOTS                  1
#else
#define BOOT_NUM_SLOTS                  2
#endif

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