RTLSDR: restored gain setting

pull/27/head
f4exb 2017-02-21 06:14:47 +01:00
rodzic 07078fa913
commit 4e102ad86d
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -220,6 +220,19 @@ bool RTLSDRInput::applySettings(const RTLSDRSettings& settings, bool force)
{
bool forwardChange = false;
if ((m_settings.m_gain != settings.m_gain) || force)
{
m_settings.m_gain = settings.m_gain;
if(m_dev != 0)
{
if(rtlsdr_set_tuner_gain(m_dev, m_settings.m_gain) != 0)
{
qDebug("rtlsdr_set_tuner_gain() failed");
}
}
}
if ((m_settings.m_dcBlock != settings.m_dcBlock) || force)
{
m_settings.m_dcBlock = settings.m_dcBlock;