diff options
| author | Josh Blum <josh@joshknows.com> | 2010-07-27 18:46:04 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2010-07-27 18:46:04 -0700 | 
| commit | 06eeab272d89e6491b48c7bed4d97bb68b821946 (patch) | |
| tree | 25bad516795bbcaef0ac2b149237738794aac014 | |
| parent | 9e2218d57b967d8756c90785f753987d65f5a4b2 (diff) | |
| download | uhd-06eeab272d89e6491b48c7bed4d97bb68b821946.tar.gz uhd-06eeab272d89e6491b48c7bed4d97bb68b821946.tar.bz2 uhd-06eeab272d89e6491b48c7bed4d97bb68b821946.zip | |
usrp: gain group should not try to set gain elements if there are none
| -rw-r--r-- | host/lib/gain_group.cpp | 1 | 
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; | 
