Fixes crash due to not exisiting pointer to log in run time

This commit is contained in:
David Rupprecht 2021-02-11 14:07:20 +01:00 committed by Xavier Arteaga
parent 57f66febfc
commit 14cc25f181
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ bool worker_pool::init(const phy_args_nr_t& args,
// Initialise PRACH // Initialise PRACH
auto& prach_log = srslog::fetch_basic_logger("NR-PRACH", log_sink); auto& prach_log = srslog::fetch_basic_logger("NR-PRACH", log_sink);
prach_log.set_level(srslog::str_to_basic_level(common->args->log.phy_level)); prach_log.set_level(srslog::str_to_basic_level(args.log.phy_level));
prach_buffer = std::unique_ptr<prach>(new prach(prach_log)); prach_buffer = std::unique_ptr<prach>(new prach(prach_log));
prach_buffer->init(phy_state.args.dl.nof_max_prb); prach_buffer->init(phy_state.args.dl.nof_max_prb);