From 2a44d6836ca08b6b67b83b63487b838e138ac379 Mon Sep 17 00:00:00 2001 From: Christian Hahn Date: Mon, 14 Jan 2019 00:07:19 -0800 Subject: multi_usrp: fix get_{tx/rx}_dc_offset_range default argument The use of the wildcard channel index, ALL_CHANS, as the default value for the argument chan in the methods get_{tx/rx}_dc_offset_range seems inappropriate. A default value of 0 is consistent with other getters. --- host/include/uhd/usrp/multi_usrp.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp index a99cba845..3c52e907a 100644 --- a/host/include/uhd/usrp/multi_usrp.hpp +++ b/host/include/uhd/usrp/multi_usrp.hpp @@ -1159,7 +1159,7 @@ public: * Get the valid range for RX DC offset values. * \param chan the channel index 0 to N-1 */ - virtual meta_range_t get_rx_dc_offset_range(size_t chan = ALL_CHANS) = 0; + virtual meta_range_t get_rx_dc_offset_range(size_t chan = 0) = 0; /*! * Enable/disable the automatic IQ imbalance correction. @@ -1454,7 +1454,7 @@ public: * Get the valid range for TX DC offset values. * \param chan the channel index 0 to N-1 */ - virtual meta_range_t get_tx_dc_offset_range(size_t chan = ALL_CHANS) = 0; + virtual meta_range_t get_tx_dc_offset_range(size_t chan = 0) = 0; /*! * Set the TX frontend IQ imbalance correction. -- cgit v1.2.3