Set initial_wait=0 and opp_enabled = 0

This commit is contained in:
rmagueta
2021-09-21 13:00:03 +01:00
parent e13ef657f3
commit 617bf6a16c
+3 -3
View File
@@ -1244,13 +1244,13 @@ void *ru_thread( void *param ) {
int slot = fp->slots_per_frame-1;
int frame = 1023;
char threadname[40];
int initial_wait=1;
int initial_wait=0;
int opp_enabled0 = opp_enabled;
nfapi_nr_config_request_scf_t *cfg = &ru->config;
// set the timing measurements for startup phase, for RX fronthaul settling measurements, put it to configured value after
opp_enabled = 1;
opp_enabled = 0;
// set default return value
ru_thread_status = 0;
@@ -1364,7 +1364,7 @@ void *ru_thread( void *param ) {
if (proc->frame_rx>=300) {
initial_wait=0;
opp_enabled = opp_enabled0;
}
}
if (initial_wait == 0 && ru->rx_fhaul.trials > 1000) reset_meas(&ru->rx_fhaul);
proc->timestamp_tx = proc->timestamp_rx + (sf_ahead*fp->samples_per_subframe);
proc->frame_tx = (proc->tti_rx > (fp->slots_per_frame-1-(fp->slots_per_subframe*sf_ahead))) ? (proc->frame_rx+1)&1023 : proc->frame_rx;