Commit ce24af2c authored by francescomani's avatar francescomani

simplification of previous fix

parent 2f2ad0ea
......@@ -309,8 +309,8 @@ int nr_initial_sync(UE_nr_rxtx_proc_t *proc, PHY_VARS_NR_UE *ue, int n_frames)
int n_symb_prefix0 = (ue->symbol_offset/(7*(1<<mu)))+1;
sync_pos_frame = n_symb_prefix0*(fp->ofdm_symbol_size + fp->nb_prefix_samples0)+(ue->symbol_offset-n_symb_prefix0)*(fp->ofdm_symbol_size + fp->nb_prefix_samples);
if (ue->ssb_offset < sync_pos_frame){
ue->rx_offset = (2*fp->samples_per_frame) - sync_pos_frame + ue->ssb_offset;
ue->init_sync_frame = !is + 2;
ue->rx_offset = fp->samples_per_frame - sync_pos_frame + ue->ssb_offset;
ue->init_sync_frame = !is + 1;
}
else{
ue->rx_offset = ue->ssb_offset - sync_pos_frame;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment