Skip to content

Commit

Permalink
initialize and reset avg_noise in phch_common
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepuschmann committed Jan 22, 2019
1 parent c782ef2 commit 61f3a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srsue/src/phy/phch_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 61f3a55

Please sign in to comment.