From 457b9aa2c899784d8b755d7d0754440ee621ef3c Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 15 May 2018 16:26:53 +0200 Subject: [PATCH] ChannelAnalzyerNG: fixed bandwidth expand/shrink with baseband sample rate changes --- plugins/channelrx/chanalyzerng/chanalyzernggui.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/plugins/channelrx/chanalyzerng/chanalyzernggui.cpp b/plugins/channelrx/chanalyzerng/chanalyzernggui.cpp index 8637cded3..afc23019b 100644 --- a/plugins/channelrx/chanalyzerng/chanalyzernggui.cpp +++ b/plugins/channelrx/chanalyzerng/chanalyzernggui.cpp @@ -163,19 +163,12 @@ bool ChannelAnalyzerNGGUI::handleMessage(const Message& message) { int newRate = getRequestedChannelSampleRate() / (1<BW->value() * 100L * m_rate) / newRate; - uint64_t newLC = (ui->lowCut->value() * 100L * m_rate) / newRate; - qDebug() << "ChannelAnalyzerNGGUI::handleMessage: MsgReportChannelSampleRateChanged:" - << " newRate: " << newRate - << " newBW: " << newBW - << " newLC: " << newLC; + << "m_rate: " << m_rate + << " newRate: " << newRate; m_rate = newRate; - ui->BW->setValue(newBW/100); - ui->lowCut->setValue(newLC/100); - blockApplySettings(true); setFiltersUIBoundaries(); blockApplySettings(false);