From f948a75b55ba54dac2871f588bf86c1c02060651 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sun, 14 Jan 2018 20:52:57 +0100 Subject: [PATCH] initialize variables --- srsue/src/phy/phch_common.cc | 3 +++ srsue/src/phy/phch_recv.cc | 1 + 2 files changed, 4 insertions(+) diff --git a/srsue/src/phy/phch_common.cc b/srsue/src/phy/phch_common.cc index b9138100b..01121f3b3 100644 --- a/srsue/src/phy/phch_common.cc +++ b/srsue/src/phy/phch_common.cc @@ -339,6 +339,9 @@ void phch_common::reset() { rx_gain_offset = 0; sr_last_tx_tti = -1; cur_pusch_power = 0; + avg_rsrp = 0; + avg_rsrp_dbm = 0; + avg_rsrq_db = 0; pcell_meas_enabled = false; pcell_report_period = 20; diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index 4ae969273..90a80d73f 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -52,6 +52,7 @@ phch_recv::phch_recv() { dl_freq = -1; ul_freq = -1; bzero(&cell, sizeof(srslte_cell_t)); + bzero(&metrics, sizeof(sync_metrics_t)); running = false; worker_com = NULL; }