From e1c70033d58bf87d879b5aa5bc93cb75a5d67995 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Mon, 29 Jul 2019 23:22:09 +0200 Subject: [PATCH] Fix H7 crashing on boot caused by missing change in 38013a8253ea0841da254b3bf5ed73c680da771d. --- src/main/drivers/serial_uart_stm32h7xx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/drivers/serial_uart_stm32h7xx.c b/src/main/drivers/serial_uart_stm32h7xx.c index a3a682443..511ddafa4 100644 --- a/src/main/drivers/serial_uart_stm32h7xx.c +++ b/src/main/drivers/serial_uart_stm32h7xx.c @@ -451,6 +451,15 @@ void uartIrqHandler(uartPort_t *s) } #endif } + + if (__HAL_UART_GET_IT(huart, UART_IT_IDLE)) { + if (s->port.idleCallback) { + s->port.idleCallback(); + } + + __HAL_UART_CLEAR_IDLEFLAG(huart); + } + } #ifdef USE_DMA -- 2.11.4.GIT