diff --git a/arch/arm/src/efm32/efm32_config.h b/arch/arm/src/efm32/efm32_config.h index 0af2321b34..5e5727ecef 100644 --- a/arch/arm/src/efm32/efm32_config.h +++ b/arch/arm/src/efm32/efm32_config.h @@ -160,7 +160,9 @@ # undef CONFIG_LEUART0_SERIAL_CONSOLE # define HAVE_LEUART_CONSOLE 1 #else -# warning "No valid CONFIG_U[S]ART[n]_SERIAL_CONSOLE Setting" +# ifdef CONFIG_DEV_CONSOLE +# warning "No valid CONFIG_U[S]ART[n]_SERIAL_CONSOLE Setting" +# endif # undef CONFIG_USART0_SERIAL_CONSOLE # undef CONFIG_USART1_SERIAL_CONSOLE # undef CONFIG_USART2_SERIAL_CONSOLE