Skip to content

Commit d7bbf47

Browse files
committed
app: fix unnecessary adding of TDD pattern2 even when not configured
1 parent 3e3a704 commit d7bbf47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/gnb/gnb_appconfig_cli11_schema.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ static void configure_cli11_tdd_ul_dl_args(CLI::App& app, tdd_ul_dl_appconfig& t
660660
tdd_ul_dl_params.pattern2.reset();
661661
}
662662
};
663-
app.callback(tdd_ul_dl_verify_callback);
663+
app.parse_complete_callback(tdd_ul_dl_verify_callback);
664664
}
665665

666666
static void configure_cli11_paging_args(CLI::App& app, paging_appconfig& pg_params)
@@ -825,7 +825,7 @@ static void configure_cli11_common_cell_args(CLI::App& app, base_cell_appconfig&
825825
cell_params.tdd_ul_dl_cfg.reset();
826826
}
827827
};
828-
app.callback(tdd_ul_dl_verify_callback);
828+
app.parse_complete_callback(tdd_ul_dl_verify_callback);
829829

830830
// Paging configuration.
831831
CLI::App* paging_subcmd = app.add_subcommand("paging", "Paging parameters");

0 commit comments

Comments
 (0)