From 95bc7b48dfdde08e8d356cee0534fa9c81b60669 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sat, 25 Apr 2020 14:29:20 +0200 Subject: [PATCH] ue_dl_nbiot: fix storing of softbits after first decoding failed memcpy wasn't using sizeof(float) --- lib/src/phy/ue/ue_dl_nbiot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/ue/ue_dl_nbiot.c b/lib/src/phy/ue/ue_dl_nbiot.c index 5d77a3089..378f06441 100644 --- a/lib/src/phy/ue/ue_dl_nbiot.c +++ b/lib/src/phy/ue/ue_dl_nbiot.c @@ -880,7 +880,7 @@ int srslte_nbiot_ue_dl_decode_npdsch_bcch(srslte_nbiot_ue_dl_t* q, uint8_t* data // decoding failed, check for possible repetitions if (q->npdsch_cfg.rep_idx == 0) { // store soft-bits of first repetition - memcpy(q->llr, q->npdsch.llr, q->npdsch_cfg.grant.nof_sf * q->npdsch_cfg.nbits.nof_bits); + srs_vec_f_copy(q->llr, q->npdsch.llr, q->npdsch_cfg.grant.nof_sf * q->npdsch_cfg.nbits.nof_bits); } else { INFO("Soft-combining NPDSCH repetition %d\n", q->npdsch_cfg.rep_idx); srslte_vec_sum_fff(q->llr, q->npdsch.llr, q->llr, q->npdsch_cfg.grant.nof_sf * q->npdsch_cfg.nbits.nof_bits);