Skip to content

Commit e576703

Browse files
committed
[nrf fromlist] boot_serial: cleanup max output size calculation
mcu-tools/mcuboot#1215 Calculation of BOOT_SERIAL_OUT_MAX was based on MCUBOOT_IMAGE_NUMBER while in other places BOOT_IMAGE_NUMBER is taken int account as images number. Let's align the calculation to use same literal value as others. Signed-off-by: Andrzej Puzdrowski <[email protected]> (cherry picked from commit 632ad84)
1 parent b76688d commit e576703

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
@@ -68,7 +68,7 @@ MCUBOOT_LOG_MODULE_DECLARE(mcuboot);
6868
#endif
6969

7070
#define BOOT_SERIAL_INPUT_MAX 512
71-
#define BOOT_SERIAL_OUT_MAX (128 * MCUBOOT_IMAGE_NUMBER)
71+
#define BOOT_SERIAL_OUT_MAX (128 * BOOT_IMAGE_NUMBER)
7272

7373
#ifdef __ZEPHYR__
7474
/* base64 lib encodes data to null-terminated string */

0 commit comments

Comments
 (0)