arm: fix bug in uart HAL

This commit is contained in:
Paul Mathieu 2022-06-19 09:34:10 +02:00
parent 15f2657254
commit 1fc4a734bd

View File

@ -178,6 +178,8 @@ static void ReceiveDataHandler(XUartLite *InstancePtr)
*/ */
if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) { if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) {
XUartLite_ReceiveBuffer(InstancePtr); XUartLite_ReceiveBuffer(InstancePtr);
} else {
return;
} }
/* /*