mirror of https://github.com/PentHertz/srsLTE.git
Fix initial buffer data and removed unimplemented method
This commit is contained in:
parent
a9591f1d45
commit
57b50edbe2
|
@ -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 = {};
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue