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);