@@ -619,7 +619,7 @@ static int rfsimulator_write_internal(rfsimulator_state_t *t, openair0_timestamp
staticint64_tTO_sim_shift=0;
staticuint64_tTO_TS=0;
if(RFsim_DriftPerFrame!=0){
if(TO_gNB_flag){//a UE is active
if(TO_gNB_flag){//a gNB is active
if(TO_wait_flag){//for the first write when a UE is connected
TO_wait_flag=0;
TO_TS=timestamp+samples_per_slot*nb_slot_per_fram*300+samples_per_slot*5;//start drifting 300 frames after a UE is active, trying to skip all the "trash" frames (5 trash frames currently)
...
...
@@ -971,9 +971,9 @@ static int rfsimulator_read(openair0_device *device, openair0_timestamp *ptimest