bugfix: missing early return in TPC derivation

master
Francisco 3 years ago committed by Francisco Paisana
parent 75eebd6b5d
commit e2c37ad513

@ -171,7 +171,9 @@ private:
} }
if (last_phr < 0) { if (last_phr < 0) {
// negative PHR // negative PHR
encode_tpc_delta(-1); logger.info(
"TPC: rnti=0x%x, %s command=-1 due to PHR=%d < 0", rnti, cc == PUSCH_CODE ? "PUSCH" : "PUCCH", last_phr);
return encode_tpc_delta(-1);
} }
if ((tti_count - ch_snr.last_tpc_tti_count) < min_tpc_tti_interval) { if ((tti_count - ch_snr.last_tpc_tti_count) < min_tpc_tti_interval) {
// more time required before sending next TPC // more time required before sending next TPC

Loading…
Cancel
Save