Code clean up
This commit is contained in:
@@ -1335,14 +1335,12 @@ void set_harq_status(NR_UE_MAC_INST_t *mac,
|
|||||||
current_harq->dl_frame = frame;
|
current_harq->dl_frame = frame;
|
||||||
current_harq->dl_slot = slot;
|
current_harq->dl_slot = slot;
|
||||||
if (get_softmodem_params()->emulate_l1) {
|
if (get_softmodem_params()->emulate_l1) {
|
||||||
uint8_t scs = get_softmodem_params()->numerology;
|
int scs = get_softmodem_params()->numerology;
|
||||||
int slots_per_frame = nr_slots_per_frame[scs];
|
int slots_per_frame = nr_slots_per_frame[scs];
|
||||||
if (data_toul_fb + slot >= slots_per_frame) {
|
slot += data_toul_fb;
|
||||||
|
if (slot >= slots_per_frame) {
|
||||||
frame = (frame + 1) % 1024;
|
frame = (frame + 1) % 1024;
|
||||||
slot = (data_toul_fb + slot) - slots_per_frame;
|
slot %= slots_per_frame;
|
||||||
}
|
|
||||||
else {
|
|
||||||
slot = data_toul_fb + slot;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user