Skip to content

Commit a967c66

Browse files
butoknordicjm
authored andcommitted
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 <[email protected]>
1 parent a5e3d16 commit a967c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boot/zephyr/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ void zephyr_boot_log_stop(void)
389389
* !defined(CONFIG_LOG_PROCESS_THREAD) && !defined(ZEPHYR_LOG_MODE_MINIMAL)
390390
*/
391391

392-
#ifdef CONFIG_MCUBOOT_SERIAL
392+
#if defined(CONFIG_BOOT_SERIAL_ENTRANCE_GPIO) || defined(CONFIG_BOOT_SERIAL_PIN_RESET) \
393+
|| defined(CONFIG_BOOT_SERIAL_BOOT_MODE) || defined(CONFIG_BOOT_SERIAL_NO_APPLICATION)
393394
static void boot_serial_enter()
394395
{
395396
int rc;

0 commit comments

Comments
 (0)