mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
ATV Demod: align modulation enum to GUI combo box order
This commit is contained in:
parent
2966e3b18e
commit
465944f60b
@ -265,8 +265,6 @@ void ATVDemodGUI::blockApplySettings(bool blnBlock)
|
|||||||
|
|
||||||
void ATVDemodGUI::applySettings()
|
void ATVDemodGUI::applySettings()
|
||||||
{
|
{
|
||||||
ATVDemod::ATVModulation enmSelectedModulation;
|
|
||||||
|
|
||||||
if (m_blnDoApplySettings)
|
if (m_blnDoApplySettings)
|
||||||
{
|
{
|
||||||
setTitleColor(m_objChannelMarker.getColor());
|
setTitleColor(m_objChannelMarker.getColor());
|
||||||
@ -278,25 +276,6 @@ void ATVDemodGUI::applySettings()
|
|||||||
m_objChannelizer->getInputSampleRate(), // always use maximum available bandwidth
|
m_objChannelizer->getInputSampleRate(), // always use maximum available bandwidth
|
||||||
m_objChannelMarker.getCenterFrequency());
|
m_objChannelMarker.getCenterFrequency());
|
||||||
|
|
||||||
switch (ui->modulation->currentIndex())
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
enmSelectedModulation = ATVDemod::ATV_FM1;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
enmSelectedModulation = ATVDemod::ATV_FM2;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
enmSelectedModulation = ATVDemod::ATV_AM;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
enmSelectedModulation = ATVDemod::ATV_FM1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_objATVDemod->configure(m_objATVDemod->getInputMessageQueue(),
|
m_objATVDemod->configure(m_objATVDemod->getInputMessageQueue(),
|
||||||
ui->lineTime->value(),
|
ui->lineTime->value(),
|
||||||
ui->topTime->value(),
|
ui->topTime->value(),
|
||||||
|
Loading…
Reference in New Issue
Block a user