From 1cd31964009439e4272d4a9f9814a4247442c9f0 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 27 Jun 2022 17:40:10 +0200 Subject: [PATCH] boot_serial: Fix Mynewt tests compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit repos/mcuboot/boot/boot_serial/test/src/testcases/ boot_serial_upload_bigger_image.c: In function ‘TEST_CASE_boot_serial_upload_bigger_image’: repos/mcuboot/boot/boot_serial/test/src/testcases/ boot_serial_upload_bigger_image.c:91:42: error: ‘Value8Bit’ undeclared (first use in this function) 91 | buf[payload_off + len - 2] = Value8Bit; | ^~~~~~~~~ Signed-off-by: Szymon Janc --- .../test/src/testcases/boot_serial_upload_bigger_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/boot_serial/test/src/testcases/boot_serial_upload_bigger_image.c b/boot/boot_serial/test/src/testcases/boot_serial_upload_bigger_image.c index 83ba50a5..d8b3185b 100644 --- a/boot/boot_serial/test/src/testcases/boot_serial_upload_bigger_image.c +++ b/boot/boot_serial/test/src/testcases/boot_serial_upload_bigger_image.c @@ -20,6 +20,7 @@ #include #include "boot_test.h" +#include "zcbor_common.h" TEST_CASE(boot_serial_upload_bigger_image) { @@ -88,7 +89,7 @@ TEST_CASE(boot_serial_upload_bigger_image) if (off) { memcpy(buf + payload_off, payload_next, sizeof payload_next); len = sizeof payload_next; - buf[payload_off + len - 2] = Value8Bit; + buf[payload_off + len - 2] = ZCBOR_VALUE_IS_1_BYTE; buf[payload_off + len - 1] = off; } else { memcpy(buf + payload_off, payload_first, sizeof payload_first);