forked from sdr/gr-osmosdr
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:
parent
86ad584204
commit
b3d915f591
|
@ -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…
Reference in New Issue