aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/gain_group.cpp
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2014-03-25 15:59:03 -0700
committermichael-west <michael.west@ettus.com>2014-03-25 15:59:03 -0700
commit04292f9b109479b639add31f83fd240a6387f488 (patch)
tree4b8723a4ae63626029704f901ee0083bb23bc1e9 /host/lib/utils/gain_group.cpp
parent09915aa57bc88099cbcbbe925946ae65bc0ad8f0 (diff)
parentff8a1252f3a51369abe0a165d963b781089ec66c (diff)
downloaduhd-04292f9b109479b639add31f83fd240a6387f488.tar.gz
uhd-04292f9b109479b639add31f83fd240a6387f488.tar.bz2
uhd-04292f9b109479b639add31f83fd240a6387f488.zip
Merge branch 'master' into mwest/b200_docs
Diffstat (limited to 'host/lib/utils/gain_group.cpp')
-rw-r--r--host/lib/utils/gain_group.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/utils/gain_group.cpp b/host/lib/utils/gain_group.cpp
index 85f4977a6..d422b3d52 100644
--- a/host/lib/utils/gain_group.cpp
+++ b/host/lib/utils/gain_group.cpp
@@ -64,7 +64,7 @@ public:
}
gain_range_t get_range(const std::string &name){
- if (not name.empty()) return _name_to_fcns[name].get_range();
+ if (not name.empty()) return _name_to_fcns.get(name).get_range();
double overall_min = 0, overall_max = 0, overall_step = 0;
BOOST_FOREACH(const gain_fcns_t &fcns, get_all_fcns()){
@@ -79,7 +79,7 @@ public:
}
double get_value(const std::string &name){
- if (not name.empty()) return _name_to_fcns[name].get_value();
+ if (not name.empty()) return _name_to_fcns.get(name).get_value();
double overall_gain = 0;
BOOST_FOREACH(const gain_fcns_t &fcns, get_all_fcns()){
@@ -89,7 +89,7 @@ public:
}
void set_value(double gain, const std::string &name){
- if (not name.empty()) return _name_to_fcns[name].set_value(gain);
+ if (not name.empty()) return _name_to_fcns.get(name).set_value(gain);
std::vector<gain_fcns_t> all_fcns = get_all_fcns();
if (all_fcns.size() == 0) return; //nothing to set!