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,7 +178,9 @@ static void ReceiveDataHandler(XUartLite *InstancePtr)
*/ */
if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) { if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) {
XUartLite_ReceiveBuffer(InstancePtr); XUartLite_ReceiveBuffer(InstancePtr);
} } else {
return;
}
/* /*
* If the last byte of a message was received then call the application * If the last byte of a message was received then call the application