From 57b50edbe277001820d0b78b897ae716d9f1b6a9 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 19 Jan 2022 18:34:58 +0100 Subject: [PATCH] Fix initial buffer data and removed unimplemented method --- srsue/hdr/phy/nr/cell_search.h | 2 -- srsue/src/phy/sync_sa.cc | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/srsue/hdr/phy/nr/cell_search.h b/srsue/hdr/phy/nr/cell_search.h index 7333cd7a9..ec983ac14 100644 --- a/srsue/hdr/phy/nr/cell_search.h +++ b/srsue/hdr/phy/nr/cell_search.h @@ -49,8 +49,6 @@ public: bool start(const cfg_t& cfg); ret_t run_slot(const cf_t* buffer, uint32_t slot_sz); - void reset(); - private: srslog::basic_logger& logger; srsran_ssb_t ssb = {}; diff --git a/srsue/src/phy/sync_sa.cc b/srsue/src/phy/sync_sa.cc index ae658db65..23460d3d0 100644 --- a/srsue/src/phy/sync_sa.cc +++ b/srsue/src/phy/sync_sa.cc @@ -215,6 +215,11 @@ void sync_sa::run_state_idle() void sync_sa::run_state_cell_search() { + // Initialise buffer + if (cell_search_nof_trials == 0) { + srsran_vec_cf_zero(rx_buffer, slot_sz); + } + // Receive samples srsran::rf_buffer_t rf_buffer = {}; rf_buffer.set_nof_samples(slot_sz);