From 52c7231addc802c26d46323504097b2b2c9279d2 Mon Sep 17 00:00:00 2001 From: Andrej Butok Date: Wed, 2 Oct 2024 12:55:59 +0200 Subject: [PATCH] boot: zephyr: Fix Warning 'boot_serial_enter defined but not used' Fix possible warning "boot_serial_enter defined but not used". Signed-off-by: Andrej Butok (cherry picked from commit a967c66ed056ce4b82deddee6b18dbabb21bf384) --- boot/zephyr/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 62b45128..20cca0db 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c @@ -389,7 +389,8 @@ void zephyr_boot_log_stop(void) * !defined(CONFIG_LOG_PROCESS_THREAD) && !defined(ZEPHYR_LOG_MODE_MINIMAL) */ -#ifdef CONFIG_MCUBOOT_SERIAL +#if defined(CONFIG_BOOT_SERIAL_ENTRANCE_GPIO) || defined(CONFIG_BOOT_SERIAL_PIN_RESET) \ + || defined(CONFIG_BOOT_SERIAL_BOOT_MODE) || defined(CONFIG_BOOT_SERIAL_NO_APPLICATION) static void boot_serial_enter() { int rc;