mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
New channel analyzer and scope: set sample rate to constructor value if zero is returned
This commit is contained in:
parent
0fe7c33e62
commit
a0331c1ce9
@ -434,6 +434,10 @@ bool ChannelAnalyzerNGGUI::setNewFinalRate(int spanLog2)
|
|||||||
//m_rate = m_channelizer->getInputSampleRate() / (1<<spanLog2);
|
//m_rate = m_channelizer->getInputSampleRate() / (1<<spanLog2);
|
||||||
m_rate = getRequestedChannelSampleRate() / (1<<spanLog2);
|
m_rate = getRequestedChannelSampleRate() / (1<<spanLog2);
|
||||||
|
|
||||||
|
if (m_rate == 0) {
|
||||||
|
m_rate = 6000;
|
||||||
|
}
|
||||||
|
|
||||||
setFiltersUIBoundaries();
|
setFiltersUIBoundaries();
|
||||||
|
|
||||||
QString s = QString::number(m_rate/1000.0, 'f', 1);
|
QString s = QString::number(m_rate/1000.0, 'f', 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user