aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-27 18:46:04 -0700
committerJosh Blum <josh@joshknows.com>2010-07-27 18:46:04 -0700
commit06eeab272d89e6491b48c7bed4d97bb68b821946 (patch)
tree25bad516795bbcaef0ac2b149237738794aac014 /host
parent9e2218d57b967d8756c90785f753987d65f5a4b2 (diff)
downloaduhd-06eeab272d89e6491b48c7bed4d97bb68b821946.tar.gz
uhd-06eeab272d89e6491b48c7bed4d97bb68b821946.tar.bz2
uhd-06eeab272d89e6491b48c7bed4d97bb68b821946.zip
usrp: gain group should not try to set gain elements if there are none
Diffstat (limited to 'host')
-rw-r--r--host/lib/gain_group.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/gain_group.cpp b/host/lib/gain_group.cpp
index 3ae9a285e..5a14fa96f 100644
--- a/host/lib/gain_group.cpp
+++ b/host/lib/gain_group.cpp
@@ -70,6 +70,7 @@ public:
void set_value(float gain){
std::vector<gain_fcns_t> all_fcns = get_all_fcns();
+ if (all_fcns.size() == 0) return; //nothing to set!
//get the max step size among the gains
float max_step = 0;