Fix H7 crashing on boot caused by missing change in

38013a8253.
This commit is contained in:
Dominic Clifton 2019-07-29 23:22:09 +02:00
parent 7a84a5cf73
commit e1c70033d5
1 changed files with 9 additions and 0 deletions

View File

@ -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