Skip to content

Commit

Permalink
[nrf fromlist] boot_serial: cleanup max output size calculation
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
nvlsianpu committed Dec 2, 2021
1 parent b76688d commit e576703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/boot_serial/src/boot_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ MCUBOOT_LOG_MODULE_DECLARE(mcuboot);
#endif

#define BOOT_SERIAL_INPUT_MAX 512
#define BOOT_SERIAL_OUT_MAX (128 * MCUBOOT_IMAGE_NUMBER)
#define BOOT_SERIAL_OUT_MAX (128 * BOOT_IMAGE_NUMBER)

#ifdef __ZEPHYR__
/* base64 lib encodes data to null-terminated string */
Expand Down

0 comments on commit e576703

Please sign in to comment.