From a60589b8ef55f47ce5548acdcdedbd41faee89ab Mon Sep 17 00:00:00 2001 From: Appleman4321 Date: Mon, 16 Jan 2023 14:33:14 +0300 Subject: [PATCH] Fixed duplicate code and comments --- lib/examples/pssch_ue.c | 3 +-- srsue/src/phy/phy.cc | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/examples/pssch_ue.c b/lib/examples/pssch_ue.c index 334430554..d0c70b689 100644 --- a/lib/examples/pssch_ue.c +++ b/lib/examples/pssch_ue.c @@ -58,13 +58,12 @@ typedef struct { void args_default(prog_args_t* args) { - args->disable_plots = false; args->use_standard_lte_rates = false; + args->disable_plots = false; args->input_file_name = NULL; args->file_start_sf_idx = 0; args->nof_rx_antennas = 1; args->rf_dev = ""; - args->rf_dev = ""; args->rf_args = ""; args->rf_freq = 5.92e9; args->rf_gain = 50; diff --git a/srsue/src/phy/phy.cc b/srsue/src/phy/phy.cc index 9fca03a4c..4c64a5783 100644 --- a/srsue/src/phy/phy.cc +++ b/srsue/src/phy/phy.cc @@ -304,14 +304,14 @@ bool phy::cell_select(phy_cell_t cell) // Update PCI before starting the background command to make sure PRACH gets the updated value selected_cell.id = cell.pci; - // Update EARCN before starting the background task to make sure is taken into account when finding carriers to + // Update EARFCN before starting the background task to make sure is taken into account when finding carriers to // measure inter-frequency neighbours (see set_cells_to_meas) selected_earfcn = cell.earfcn; // Indicate workers that cell selection is in progress common.cell_is_selecting = true; - // Update EARCN before starting the background task to make sure is taken into account when finding carriers to + // Update EARFCN before starting the background task to make sure is taken into account when finding carriers to // measure inter-frequency neighbours (see set_cells_to_meas) selected_earfcn = cell.earfcn;