1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-08-07 00:02:31 -04:00

USRP: Attempt to support radios without AGC

This commit is contained in:
Jon Beniston 2022-06-20 14:27:23 +01:00
parent 964835e2f2
commit 9b344120e9

View File

@ -823,8 +823,15 @@ bool USRPInput::applySettings(const USRPInputSettings& settings, bool preGetStre
{ {
if (settings.m_gainMode == USRPInputSettings::GAIN_AUTO) if (settings.m_gainMode == USRPInputSettings::GAIN_AUTO)
{ {
m_deviceShared.m_deviceParams->getDevice()->set_rx_agc(true, m_deviceShared.m_channel); try
qDebug() << "USRPInput::applySettings: AGC enabled for channel " << m_deviceShared.m_channel; {
m_deviceShared.m_deviceParams->getDevice()->set_rx_agc(true, m_deviceShared.m_channel);
qDebug() << "USRPInput::applySettings: AGC enabled for channel " << m_deviceShared.m_channel;
}
catch (uhd::not_implemented_error &e)
{
qDebug() << "USRPInput::applySettings: AGC not implemented on this radio. Please set to manual.";
}
} }
else else
{ {