From ccb09ba68bc11f110c0ed73cf211c1b168da820d Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 16 Jan 2018 18:28:04 -0800 Subject: mg: Fix missing return value for half-dB steps --- host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/usrp/dboard') 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; } -- cgit v1.2.3