Commit 434186fd authored by Robert Schmidt's avatar Robert Schmidt

Correct TA timer condition

- wrap around 1024 (frame number is 0-1023)
- check for equality of frames with high numbers will trigger every 10ms
parent 3d60e953
......@@ -641,7 +641,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
* Possible improvement: take the periodicity from input file.
* If such UE is not scheduled now, it will be by the preprocessor later.
* If we add the CE, ta_apply will be reset */
if (frame >= (sched_ctrl->ta_frame + 10) % 1023)
if (frame == (sched_ctrl->ta_frame + 10) % 1024)
sched_ctrl->ta_apply = true; /* the timer is reset once TA CE is scheduled */
if (sched_ctrl->rbSize <= 0)
......
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