soapy: do not throw when IQ bal mode is set to off

The automatic IQ balance mode is not supported,
but we should not throw when it is set to disabled.
Setting to disabled is techinically allowable,
and currently throwing is disruptive for users.
soapy_support
Josh Blum 7 years ago
parent 86ad584204
commit b3d915f591
  1. 1
      lib/soapy/soapy_source_c.cc

@ -281,6 +281,7 @@ void soapy_source_c::set_dc_offset( const std::complex<double> &offset, size_t c
void soapy_source_c::set_iq_balance_mode( int mode, size_t chan )
{
if (mode == osmosdr::source::IQBalanceOff) return; //no error on disable
throw std::runtime_error("soapy_source_c::set_iq_balance_mode() not supported");
}

Loading…
Cancel
Save