Merge pull request #8628 from hydra/fix-h7-uart-idle-handling
Fix H7 crashing on boot due to #8599
This commit is contained in:
commit
932f14d3b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue