Skip to content

Commit 6cbea0a

Browse files
committed
boot: boot_serial: Fix swap using offset
Fixes an issue with swap using offser with serial recovery by changing an #ifdef Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent efa3039 commit 6cbea0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/boot_serial/src/boot_serial.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ bs_list(char *buf, int len)
290290
zcbor_list_start_encode(cbor_state, 5);
291291
image_index = 0;
292292
IMAGES_ITER(image_index) {
293-
#ifdef MCUBOOT_SERIAL_IMG_GRP_IMAGE_STATE
293+
#if defined(MCUBOOT_SERIAL_IMG_GRP_IMAGE_STATE) || defined(MCUBOOT_SWAP_USING_OFFSET)
294294
int swap_status = boot_swap_type_multi(image_index);
295295
#endif
296296

0 commit comments

Comments
 (0)