1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

ChannelAnalzyerNG: fixed bandwidth expand/shrink with baseband sample rate changes

This commit is contained in:
f4exb 2018-05-15 16:26:53 +02:00
parent 88d7a97b97
commit 457b9aa2c8

View File

@ -163,19 +163,12 @@ bool ChannelAnalyzerNGGUI::handleMessage(const Message& message)
{
int newRate = getRequestedChannelSampleRate() / (1<<m_spanLog2);
uint64_t newBW = (ui->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);