From 8e161707a51ffa924a39d27a3e84cd1d34277ecc Mon Sep 17 00:00:00 2001 From: Ed Date: Fri, 5 Jan 2024 11:25:41 +0000 Subject: [PATCH] Manually apply https://github.com/xmos/lib_xua/pull/359/files --- lib_xua/src/core/clocking/clockgen.xc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_xua/src/core/clocking/clockgen.xc b/lib_xua/src/core/clocking/clockgen.xc index 3377b5c4..90f5dea2 100644 --- a/lib_xua/src/core/clocking/clockgen.xc +++ b/lib_xua/src/core/clocking/clockgen.xc @@ -978,7 +978,7 @@ void clockGen ( streaming chanend ?c_spdif_rx, spdifSamps -= 2; /* spdifSamps could go to -1 */ - if(spdifSamps < 0) + if(spdifSamps <= 0) { /* We're out of S/PDIF samples, mark underflow condition */ spdifUnderflow = 1; @@ -1061,7 +1061,7 @@ void clockGen ( streaming chanend ?c_spdif_rx, } /* adatSamps could go to -1 */ - if (adatSamps < 0) + if (adatSamps <= 0) { /* we're out of ADAT samples, mark underflow condition */ adatUnderflow = 1;