From 7208028c019e44acea6391d620be6f291e038380 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sun, 5 Dec 2021 19:28:41 +0100 Subject: [PATCH] Fixed VFO bandwidth not adjustable after disabling new radio module --- decoder_modules/new_radio/src/radio_module.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decoder_modules/new_radio/src/radio_module.h b/decoder_modules/new_radio/src/radio_module.h index 32cbb592..4c525024 100644 --- a/decoder_modules/new_radio/src/radio_module.h +++ b/decoder_modules/new_radio/src/radio_module.h @@ -115,6 +115,7 @@ public: enabled = true; if (!vfo) { vfo = sigpath::vfoManager.createVFO(name, ImGui::WaterfallVFO::REF_CENTER, 0, 200000, 200000, 50000, 200000, false); + vfo->wtfVFO->onUserChangedBandwidth.bindHandler(&onUserChangedBandwidthHandler); } selectDemodByID((DemodID)selectedDemodID); } @@ -436,7 +437,7 @@ private: } EventHandler onUserChangedBandwidthHandler; - VFOManager::VFO* vfo; + VFOManager::VFO* vfo = NULL; dsp::Squelch squelch; dsp::filter_window::BlackmanWindow win;