AF squelch: reset after setting threshold. Removed NFM demod deferred init

pull/60/head
f4exb 2017-06-06 02:16:28 +02:00
rodzic 91021678b2
commit 604273742a
3 zmienionych plików z 2 dodań i 9 usunięć

Wyświetl plik

@ -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++;
}
}

Wyświetl plik

@ -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[];

Wyświetl plik

@ -304,4 +304,5 @@ void AFSquelch::setThreshold(double threshold)
{
qDebug("AFSquelch::setThreshold: threshold: %f", threshold);
m_threshold = threshold;
reset();
}