diff --git a/boot/boot_serial/src/boot_serial.c b/boot/boot_serial/src/boot_serial.c index 44c8bdf1c..2bbf1fe43 100644 --- a/boot/boot_serial/src/boot_serial.c +++ b/boot/boot_serial/src/boot_serial.c @@ -64,7 +64,7 @@ MCUBOOT_LOG_MODULE_DECLARE(mcuboot); #define BOOT_SERIAL_INPUT_MAX 512 -#define BOOT_SERIAL_OUT_MAX 128 +#define BOOT_SERIAL_OUT_MAX (128 * MCUBOOT_IMAGE_NUMBER) #ifdef __ZEPHYR__ /* base64 lib encodes data to null-terminated string */