aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uhd/uhd_sink_c.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uhd/uhd_sink_c.cc')
-rw-r--r--lib/uhd/uhd_sink_c.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/uhd/uhd_sink_c.cc b/lib/uhd/uhd_sink_c.cc
index c043e56..39abd0d 100644
--- a/lib/uhd/uhd_sink_c.cc
+++ b/lib/uhd/uhd_sink_c.cc
@@ -276,12 +276,20 @@ std::string uhd_sink_c::get_antenna( size_t chan )
void uhd_sink_c::set_dc_offset( const std::complex<double> &offset, size_t chan )
{
- _snk->set_dc_offset( offset, chan );
+ try {
+ _snk->set_dc_offset( offset, chan );
+ } catch ( const std::exception &ex ) {
+ std::cerr << __FUNCTION__ << ": " << ex.what() << std::endl;
+ }
}
void uhd_sink_c::set_iq_balance( const std::complex<double> &balance, size_t chan )
{
- _snk->set_iq_balance( balance, chan );
+ try {
+ _snk->set_iq_balance( balance, chan );
+ } catch ( const std::exception &ex ) {
+ std::cerr << __FUNCTION__ << ": " << ex.what() << std::endl;
+ }
}
double uhd_sink_c::set_bandwidth( double bandwidth, size_t chan )