diff options
author | Josh Blum <josh@joshknows.com> | 2015-12-06 15:19:26 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2015-12-06 15:19:26 -0800 |
commit | b3d915f5917174c7e7e57dceda3dd35e254a96de (patch) | |
tree | 6ff17e3854397551388f520303a74cecb5cb1f73 | |
parent | 86ad584204762eeb01f07daa683673f1ec3f1df5 (diff) |
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.
-rw-r--r-- | lib/soapy/soapy_source_c.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/soapy/soapy_source_c.cc b/lib/soapy/soapy_source_c.cc index 4bd3aa3..ea84467 100644 --- a/lib/soapy/soapy_source_c.cc +++ b/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"); } |