From 1fc4a734bd0938fba4bdb75741eae250c9dc2263 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sun, 19 Jun 2022 09:34:10 +0200 Subject: [PATCH] arm: fix bug in uart HAL --- arm/hal/uart/xuartlite_intr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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