diff --git a/arch/arm/src/stm32f7/stm32_serial.c b/arch/arm/src/stm32f7/stm32_serial.c index 30eebae231..bcf9dd6b27 100644 --- a/arch/arm/src/stm32f7/stm32_serial.c +++ b/arch/arm/src/stm32f7/stm32_serial.c @@ -1241,7 +1241,7 @@ static struct up_dev_s g_uart7priv = .iflow = true, .rts_gpio = GPIO_UART7_RTS, #endif -#ifdef CONFIG_UART7_RXDMA +#ifdef CONFIG_UART7_TXDMA .txdma_channel = DMAMAP_UART7_TX, #endif #ifdef CONFIG_UART7_RXDMA