Fixed regression in UARTv2 serial driver.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12291 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-09-26 08:21:48 +00:00
parent 1d73f6b900
commit d0a137799e
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ static void serve_interrupt(SerialDriver *sdp) {
if (b < MSG_OK) {
chnAddFlagsI(sdp, CHN_OUTPUT_EMPTY);
u->CR1 = cr1 & ~USART_CR1_TXEIE;
osalSysUnlockFromISR();
break;
}
u->TDR = b;