From 1a23b2f9bb9229119ac9796d4c87839790d4aacb Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sun, 31 Jan 2021 21:01:39 +0100 Subject: [PATCH] ue: don't show NR PDSCH constallation plot in normal EUTRA mode only initialize NR PDSCH plot when nof NR worker is greater 0 --- srsue/src/phy/lte/sf_worker.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/srsue/src/phy/lte/sf_worker.cc b/srsue/src/phy/lte/sf_worker.cc index 57bd1cb8b..e5611b40a 100644 --- a/srsue/src/phy/lte/sf_worker.cc +++ b/srsue/src/phy/lte/sf_worker.cc @@ -379,15 +379,13 @@ static void* plot_thread_run(void* arg) plot_scatter_setTitle(&pconst, (char*)"LTE - PDSCH - Equalized Symbols"); plot_scatter_setXAxisScale(&pconst, -4, 4); plot_scatter_setYAxisScale(&pconst, -4, 4); - plot_scatter_addToWindowGrid(&pconst, (char*)"srsue", 0, row_count++); - plot_scatter_init(&pconst_nr); - plot_scatter_setTitle(&pconst_nr, (char*)"NR - PDSCH - Equalized Symbols"); - plot_scatter_setXAxisScale(&pconst_nr, -4, 4); - plot_scatter_setYAxisScale(&pconst_nr, -4, 4); - if (plot_nr_enable) { + plot_scatter_init(&pconst_nr); + plot_scatter_setTitle(&pconst_nr, (char*)"NR - PDSCH - Equalized Symbols"); + plot_scatter_setXAxisScale(&pconst_nr, -4, 4); + plot_scatter_setYAxisScale(&pconst_nr, -4, 4); plot_scatter_addToWindowGrid(&pconst_nr, (char*)"srsue", 0, row_count++); pconst_nr_ready = true; }