aboutsummaryrefslogtreecommitdiffstats
path: root/host/test
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-20 15:32:41 -0700
committerJosh Blum <josh@joshknows.com>2010-10-20 15:32:41 -0700
commit26aef3bae98aae5364deb40a62b52ba65b9aa16a (patch)
tree00b40426474768298322275b7c81c01b24120c6a /host/test
parente0c48ba5cc1033cd330e2ce73ceb03740923e954 (diff)
downloaduhd-26aef3bae98aae5364deb40a62b52ba65b9aa16a.tar.gz
uhd-26aef3bae98aae5364deb40a62b52ba65b9aa16a.tar.bz2
uhd-26aef3bae98aae5364deb40a62b52ba65b9aa16a.zip
uhd: added name parameter to gain group, get range, set/get value by name
Diffstat (limited to 'host/test')
-rw-r--r--host/test/gain_group_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/test/gain_group_test.cpp b/host/test/gain_group_test.cpp
index 761372e5a..555ccaed3 100644
--- a/host/test/gain_group_test.cpp
+++ b/host/test/gain_group_test.cpp
@@ -81,12 +81,12 @@ static gain_group::sptr get_gain_group(size_t pri1 = 0, size_t pri2 = 0){
gain_fcns.get_range = boost::bind(&gain_element1::get_range, &g1);
gain_fcns.get_value = boost::bind(&gain_element1::get_value, &g1);
gain_fcns.set_value = boost::bind(&gain_element1::set_value, &g1, _1);
- gg->register_fcns(gain_fcns, pri1);
+ gg->register_fcns("g1", gain_fcns, pri1);
gain_fcns.get_range = boost::bind(&gain_element2::get_range, &g2);
gain_fcns.get_value = boost::bind(&gain_element2::get_value, &g2);
gain_fcns.set_value = boost::bind(&gain_element2::set_value, &g2, _1);
- gg->register_fcns(gain_fcns, pri2);
+ gg->register_fcns("g2", gain_fcns, pri2);
return gg;
}