diff --git a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c index 0619b020c..eaaeeda36 100644 --- a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c @@ -350,8 +350,9 @@ static void serve_usart_irq(UARTDriver *uartp) { } /* Timeout interrupt sources are only checked if enabled in CR1.*/ - if ((cr1 & USART_CR1_IDLEIE) && (sr & USART_SR_IDLE)) - _uart_timeout_isr_code(uartp); + if ((cr1 & USART_CR1_IDLEIE) && (sr & USART_SR_IDLE)) { + _uart_timeout_isr_code(uartp); + } } /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c b/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c index 76d1f193c..5962bfc0b 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c +++ b/testhal/STM32/multi/UART/cfg/stm32f407_discovery/portab.c @@ -49,6 +49,7 @@ UARTConfig uart_cfg_1 = { NULL, NULL, NULL, + NULL, 38400, 0, USART_CR2_LINEN,