diff --git a/arm/hal/uart/xuartlite_intr.c b/arm/hal/uart/xuartlite_intr.c index 5c42c8c..f11d9cb 100644 --- a/arm/hal/uart/xuartlite_intr.c +++ b/arm/hal/uart/xuartlite_intr.c @@ -178,7 +178,9 @@ static void ReceiveDataHandler(XUartLite *InstancePtr) */ if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) { XUartLite_ReceiveBuffer(InstancePtr); - } + } else { + return; + } /* * If the last byte of a message was received then call the application