From 9dadfc5cc3b116c4d84aae59149fbe5b64b9785e Mon Sep 17 00:00:00 2001 From: Oleg Evseev Date: Mon, 2 Nov 2020 19:01:14 +0300 Subject: [PATCH] stm32f7/stm32_serial.c: fix console re-initialisation if DMA enabled --- arch/arm/src/stm32f7/stm32_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32f7/stm32_serial.c b/arch/arm/src/stm32f7/stm32_serial.c index 19d9116cf9..446eaa1abb 100644 --- a/arch/arm/src/stm32f7/stm32_serial.c +++ b/arch/arm/src/stm32f7/stm32_serial.c @@ -3661,7 +3661,7 @@ void arm_serialinit(void) minor = 1; #endif -#ifdef SERIAL_HAVE_CONSOLE_DMA +#if defined(SERIAL_HAVE_CONSOLE_RXDMA) || defined(SERIAL_HAVE_CONSOLE_TXDMA) /* If we need to re-initialise the console to enable DMA do that here. */ up_dma_setup(&g_uart_devs[CONSOLE_UART - 1]->dev);