New channel analyzer and scope: set sample rate to constructor value if zero is returned

This commit is contained in:
f4exb 2017-03-03 06:59:31 +01:00
parent 0fe7c33e62
commit a0331c1ce9
1 changed files with 4 additions and 0 deletions

View File

@ -434,6 +434,10 @@ bool ChannelAnalyzerNGGUI::setNewFinalRate(int spanLog2)
//m_rate = m_channelizer->getInputSampleRate() / (1<<spanLog2);
m_rate = getRequestedChannelSampleRate() / (1<<spanLog2);
if (m_rate == 0) {
m_rate = 6000;
}
setFiltersUIBoundaries();
QString s = QString::number(m_rate/1000.0, 'f', 1);