From d8a921311f20fbfc0282805ae138659a6d94f110 Mon Sep 17 00:00:00 2001 From: Florian Kaltenberger Date: Mon, 22 Oct 2018 00:55:28 -0700 Subject: [PATCH] fix to previous commit --- targets/RT/USER/lte-ru.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/targets/RT/USER/lte-ru.c b/targets/RT/USER/lte-ru.c index 77925940cc..607c3615dc 100644 --- a/targets/RT/USER/lte-ru.c +++ b/targets/RT/USER/lte-ru.c @@ -1528,7 +1528,7 @@ static void* ru_thread_tx( void* param ) { LTE_DL_FRAME_PARMS *fp = &ru->frame_parms; cpu_set_t cpuset; CPU_ZERO(&cpuset); - + char filename[256]; thread_top_init("ru_thread_tx",1,400000,500000,500000); @@ -1563,17 +1563,14 @@ static void* ru_thread_tx( void* param ) { if (ru->fh_north_out) ru->fh_north_out(ru); } else { - { - for (int i=0; inb_tx; i++) - { - if(proc->frame_tx == 2) { - sprintf(filename,"txdataF%d_frame%d_sf%d",i,proc->frame_tx,proc->subframe_tx); - LOG_M(filename,"txdata_frame",ru->common.txdataF_BF[i],fp->samples_per_tti_wCP, 1, 1); - } - if(proc->frame_tx == 2 && proc->subframe_tx==0){ - sprintf(filename,"txdata%d_frame%d",i,proc->frame_tx); - LOG_M(filename,"txdata_frame",ru->common.txdata[i],fp->samples_per_tti*10, 1, 1); - } + for (int i=0; inb_tx; i++) { + if(proc->frame_tx == 2) { + sprintf(filename,"txdataF%d_frame%d_sf%d.m",i,proc->frame_tx,proc->subframe_tx); + LOG_M(filename,"txdata_frame",ru->common.txdataF_BF[i],fp->symbols_per_tti*fp->ofdm_symbol_size, 1, 1); + } + if(proc->frame_tx == 2 && proc->subframe_tx==0){ + sprintf(filename,"txdata%d_frame%d.m",i,proc->frame_tx); + LOG_M(filename,"txdata_frame",ru->common.txdata[i],fp->samples_per_tti*10, 1, 1); } } }