From 61f3a55bc5b83f12918ad81beb05b20793f61c51 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 22 Jan 2019 21:49:37 +0100 Subject: [PATCH] initialize and reset avg_noise in phch_common --- srsue/src/phy/phch_common.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsue/src/phy/phch_common.cc b/srsue/src/phy/phch_common.cc index ef2cddef5..ec38b8f4b 100644 --- a/srsue/src/phy/phch_common.cc +++ b/srsue/src/phy/phch_common.cc @@ -53,7 +53,7 @@ phch_common::phch_common(uint32_t max_workers) : tx_sem(max_workers) rx_gain_offset = 0; last_ri = 0; last_pmi = 0; - avg_noise = NAN; + avg_noise = 0; //have_mtch_stop = false; bzero(&dl_metrics, sizeof(dl_metrics_t)); @@ -364,6 +364,7 @@ void phch_common::reset() { avg_rsrp_dbm = 0; avg_rsrq_db = 0; avg_ri = 0; + avg_noise = 0; pcell_report_period = 20;