Fix initial buffer data and removed unimplemented method

This commit is contained in:
Xavier Arteaga 2022-01-19 18:34:58 +01:00 committed by Xavier Arteaga
parent a9591f1d45
commit 57b50edbe2
2 changed files with 5 additions and 2 deletions

View File

@ -49,8 +49,6 @@ public:
bool start(const cfg_t& cfg); bool start(const cfg_t& cfg);
ret_t run_slot(const cf_t* buffer, uint32_t slot_sz); ret_t run_slot(const cf_t* buffer, uint32_t slot_sz);
void reset();
private: private:
srslog::basic_logger& logger; srslog::basic_logger& logger;
srsran_ssb_t ssb = {}; srsran_ssb_t ssb = {};

View File

@ -215,6 +215,11 @@ void sync_sa::run_state_idle()
void sync_sa::run_state_cell_search() 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 // Receive samples
srsran::rf_buffer_t rf_buffer = {}; srsran::rf_buffer_t rf_buffer = {};
rf_buffer.set_nof_samples(slot_sz); rf_buffer.set_nof_samples(slot_sz);