diff --git a/srsenb/src/stack/mac/sched_ue_ctrl/sched_harq.cc b/srsenb/src/stack/mac/sched_ue_ctrl/sched_harq.cc index 312457b25..1156a1e80 100644 --- a/srsenb/src/stack/mac/sched_ue_ctrl/sched_harq.cc +++ b/srsenb/src/stack/mac/sched_ue_ctrl/sched_harq.cc @@ -324,7 +324,7 @@ void ul_harq_proc::reset_pending_data() uint32_t ul_harq_proc::get_pending_data() const { - return (uint32_t)pending_data; + return is_empty() ? 0 : (uint32_t)pending_data; } /********************