mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
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
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue