1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

Channel Analyzer: moved setLiveRate from setNewFinalRate to applySettings. Removed duplicate code

This commit is contained in:
f4exb 2018-12-12 08:33:04 +01:00
parent 8ebbfad6e5
commit b297f08275

View File

@ -469,7 +469,7 @@ void ChannelAnalyzerGUI::setNewFinalRate()
QString s = QString::number(m_rate/1000.0, 'f', 1);
ui->spanText->setText(tr("%1 kS/s").arg(s));
m_scopeVis->setLiveRate(getRequestedChannelSampleRate());
//m_scopeVis->setLiveRate(getRequestedChannelSampleRate());
}
void ChannelAnalyzerGUI::setFiltersUIBoundaries()
@ -547,15 +547,12 @@ void ChannelAnalyzerGUI::applySettings(bool force)
ChannelAnalyzer::MsgConfigureChannelizer::create(sampleRate, m_channelMarker.getCenterFrequency());
m_channelAnalyzer->getInputMessageQueue()->push(msgChannelizer);
ChannelAnalyzer::MsgConfigureChannelizer *msg =
ChannelAnalyzer::MsgConfigureChannelizer::create(sampleRate, m_channelMarker.getCenterFrequency());
m_channelAnalyzer->getInputMessageQueue()->push(msg);
ChannelAnalyzer::MsgConfigureChannelAnalyzer* message =
ChannelAnalyzer::MsgConfigureChannelAnalyzer::create( m_settings, force);
m_channelAnalyzer->getInputMessageQueue()->push(message);
m_scopeVis->setLiveRateLog2Decim(m_settings.m_spanLog2);
m_scopeVis->setLiveRate(sampleRate);
}
}