minor memcpy/memset fix
This commit is contained in:
@@ -101,8 +101,7 @@ void nr_feptx_ofdm_2thread(RU_t *ru) {
|
||||
// this copy should be done in the precoding thread (currently inactive)
|
||||
for (int aa=0;aa<ru->nb_tx;aa++)
|
||||
memcpy((void*)ru->common.txdataF_BF[aa],
|
||||
(void*)&ru->gNB_list[0]->common_vars.txdataF[aa][subframe*fp->samples_per_subframe_wCP],
|
||||
fp->samples_per_subframe_wCP*sizeof(int32_t));
|
||||
(void*)ru->gNB_list[0]->common_vars.txdataF[aa], fp->samples_per_subframe_wCP*sizeof(int32_t));
|
||||
|
||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_RU_FEPTX_OFDM , 1 );
|
||||
|
||||
|
||||
@@ -170,8 +170,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
|
||||
|
||||
// clear the transmit data array for the current subframe
|
||||
for (aa=0; aa<cfg->rf_config.tx_antenna_ports.value; aa++) {
|
||||
memset(&gNB->common_vars.txdataF[aa][subframe*fp->samples_per_subframe_wCP],
|
||||
0,fp->samples_per_subframe_wCP*sizeof(int32_t));
|
||||
memset(gNB->common_vars.txdataF[aa],0,fp->samples_per_subframe_wCP*sizeof(int32_t));
|
||||
}
|
||||
|
||||
if (nfapi_mode == 0 || nfapi_mode == 1) {
|
||||
|
||||
Reference in New Issue
Block a user