mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-13 03:41:47 -05:00
AF squelch: reset after setting threshold. Removed NFM demod deferred init
This commit is contained in:
parent
91021678b2
commit
604273742a
@ -272,8 +272,7 @@ NFMDemodGUI::NFMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidg
|
||||
m_channelMarker(this),
|
||||
m_basicSettingsShown(false),
|
||||
m_doApplySettings(true),
|
||||
m_squelchOpen(false),
|
||||
m_autoInitCount(0)
|
||||
m_squelchOpen(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
@ -429,10 +428,4 @@ void NFMDemodGUI::tick()
|
||||
|
||||
m_squelchOpen = squelchOpen;
|
||||
}
|
||||
|
||||
if (m_autoInitCount < 100) // ~5s
|
||||
{
|
||||
if (m_autoInitCount == 99) applySettings(true);
|
||||
m_autoInitCount++;
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,6 @@ private:
|
||||
bool m_ctcssOn;
|
||||
bool m_audioMute;
|
||||
bool m_squelchOpen;
|
||||
uint32_t m_autoInitCount;
|
||||
|
||||
static const int m_rfBW[];
|
||||
static const int m_fmDev[];
|
||||
|
@ -304,4 +304,5 @@ void AFSquelch::setThreshold(double threshold)
|
||||
{
|
||||
qDebug("AFSquelch::setThreshold: threshold: %f", threshold);
|
||||
m_threshold = threshold;
|
||||
reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user