1
0
Fork 0
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:
Dominic Clifton 2019-07-31 01:29:21 +02:00 committed by GitHub
commit 932f14d3b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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