diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-16 18:28:04 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-16 18:28:04 -0800 |
commit | ccb09ba68bc11f110c0ed73cf211c1b168da820d (patch) | |
tree | ec5e38e7363acaee34c171714aa5c3934479ac04 /host/lib | |
parent | 58257d749d9bc35de41e755f8d968a1463fae7a6 (diff) | |
download | uhd-ccb09ba68bc11f110c0ed73cf211c1b168da820d.tar.gz uhd-ccb09ba68bc11f110c0ed73cf211c1b168da820d.tar.bz2 uhd-ccb09ba68bc11f110c0ed73cf211c1b168da820d.zip |
mg: Fix missing return value for half-dB steps
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp b/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp index 145501202..5c7ce97cd 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp @@ -447,6 +447,7 @@ namespace { if (gain_index - int(gain_index) >= .5) { gain_tuple_t gt2 = gain_tuple; gt2.ad9371_att = std::max(0.0, gain_tuple.ad9371_att - .5); + return gt2; } return gain_tuple; } |