From 0b02f8948ce47b9b446cf5513e29016708f6dc35 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 19 Jun 2020 09:47:20 +0200 Subject: [PATCH] SRSUE: fix shadow variable --- srsue/src/phy/prach.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srsue/src/phy/prach.cc b/srsue/src/phy/prach.cc index bfbff490c..d95e66299 100644 --- a/srsue/src/phy/prach.cc +++ b/srsue/src/phy/prach.cc @@ -98,12 +98,12 @@ void prach::stop() } } -bool prach::set_cell(srslte_cell_t cell, srslte_prach_cfg_t prach_cfg) +bool prach::set_cell(srslte_cell_t cell_, srslte_prach_cfg_t prach_cfg) { if (mem_initiated) { // TODO: Check if other PRACH parameters changed - if (this->cell.id != cell.id || !cell_initiated) { - this->cell = cell; + if (cell.id != cell_.id || !cell_initiated) { + cell = cell_; preamble_idx = -1; if (6 + prach_cfg.freq_offset > cell.nof_prb) {