From 1272f4c327616b9dbd5900b52d8c683c13e7f964 Mon Sep 17 00:00:00 2001 From: Francisco Date: Thu, 28 Oct 2021 10:28:43 +0100 Subject: [PATCH] nr,gnb,mac: fix log tti context overflow --- srsenb/src/stack/mac/nr/mac_nr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsenb/src/stack/mac/nr/mac_nr.cc b/srsenb/src/stack/mac/nr/mac_nr.cc index a2988f872..95a72dd32 100644 --- a/srsenb/src/stack/mac/nr/mac_nr.cc +++ b/srsenb/src/stack/mac/nr/mac_nr.cc @@ -298,10 +298,10 @@ int mac_nr::slot_indication(const srsran_slot_cfg_t& slot_cfg) int mac_nr::get_dl_sched(const srsran_slot_cfg_t& slot_cfg, dl_sched_t& dl_sched) { - logger.set_context(slot_cfg.idx - TX_ENB_DELAY); - slot_point pdsch_slot = srsran::slot_point{NUMEROLOGY_IDX, slot_cfg.idx}; + logger.set_context((pdsch_slot - TX_ENB_DELAY).to_uint()); + // Run Scheduler sched_nr_interface::sched_rar_list_t rar_list; sched_nr_interface::dl_res_t dl_res(rar_list, dl_sched);