summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
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;