From 3416aad16d048ecc7bd2659865191676de42dea2 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 7 Jul 2021 16:01:34 +0200 Subject: [PATCH] Fix PUSCH NR test false alarm --- lib/src/phy/phch/test/pusch_nr_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/phch/test/pusch_nr_test.c b/lib/src/phy/phch/test/pusch_nr_test.c index 8ec72d619..fbffeefaa 100644 --- a/lib/src/phy/phch/test/pusch_nr_test.c +++ b/lib/src/phy/phch/test/pusch_nr_test.c @@ -303,7 +303,11 @@ int main(int argc, char** argv) if (pusch_rx.G_ulsch > 0) { for (uint32_t i = 0; i < pusch_rx.G_ulsch; i++) { uint8_t rx_bit = (((int8_t*)pusch_rx.g_ulsch)[i]) < 0 ? 1 : 0; - pusch_rx.g_ulsch[i] = rx_bit; + if (rx_bit == 0) { + pusch_rx.g_ulsch[i] = pusch_tx.g_ulsch[i]; + } else { + pusch_rx.g_ulsch[i] = rx_bit; + } } if (memcmp(pusch_tx.g_ulsch, pusch_rx.g_ulsch, pusch_tx.G_ulsch) != 0) { printf("g_ulsch_tx=");