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