diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c index aab955a5ac..5492ada786 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c @@ -931,7 +931,7 @@ static inline void lpc17_40_uart2config(void) }; #endif -#ifdef CONFIG_LPC17_40_UART3 +#if defined(CONFIG_LPC17_40_UART3) && !defined(CONFIG_UART3_SERIAL_CONSOLE) static inline void lpc17_40_uart3config(void) { uint32_t regval;