mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 11:18:56 -05:00
Merge pull request #1293 from srcejon/fix_1284
USRP: Attempt to support radios without AGC
This commit is contained in:
commit
e45b4e9254
@ -822,10 +822,17 @@ bool USRPInput::applySettings(const USRPInputSettings& settings, bool preGetStre
|
||||
if (m_deviceShared.m_deviceParams->getDevice() && (m_channelAcquired || preGetStream))
|
||||
{
|
||||
if (settings.m_gainMode == USRPInputSettings::GAIN_AUTO)
|
||||
{
|
||||
try
|
||||
{
|
||||
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
|
||||
{
|
||||
m_deviceShared.m_deviceParams->getDevice()->set_rx_agc(false, m_deviceShared.m_channel);
|
||||
|
Loading…
Reference in New Issue
Block a user