summaryrefslogtreecommitdiffstats
path: root/host/lib/gain_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/gain_group.cpp')
-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;