Merge pull request #1293 from srcejon/fix_1284

USRP: Attempt to support radios without AGC
pull/1298/head
Edouard Griffiths 2022-06-20 17:19:59 +02:00 zatwierdzone przez GitHub
commit e45b4e9254
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -823,8 +823,15 @@ bool USRPInput::applySettings(const USRPInputSettings& settings, bool preGetStre
{
if (settings.m_gainMode == USRPInputSettings::GAIN_AUTO)
{
m_deviceShared.m_deviceParams->getDevice()->set_rx_agc(true, m_deviceShared.m_channel);
qDebug() << "USRPInput::applySettings: AGC enabled for channel " << m_deviceShared.m_channel;
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
{