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.
This commit is contained in:
Josh Blum 2015-12-06 15:19:26 -08:00
parent 86ad584204
commit b3d915f591
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}