diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-04-13 15:33:03 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-04-13 15:33:03 -0700 |
commit | 2790b51f3072b5ad5e3a5c4921a84f460096f92d (patch) | |
tree | c91809e9b289bbcb62c156d0f1af9f66c01d3f8c /host/lib/usrp/multi_usrp.cpp | |
parent | 068de67366777322a7a132c4739bee9889c2bf19 (diff) | |
parent | fae9468c3a2c00c4390a50679b5ae176c5f9a2a5 (diff) | |
download | uhd-2790b51f3072b5ad5e3a5c4921a84f460096f92d.tar.gz uhd-2790b51f3072b5ad5e3a5c4921a84f460096f92d.tar.bz2 uhd-2790b51f3072b5ad5e3a5c4921a84f460096f92d.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 1abbb9b0c..7c1963f85 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -1444,7 +1444,7 @@ public: if (gain_range_width == 0.0) { return 0.0; } - double norm_gain = (get_rx_gain(ALL_GAINS, chan) - gain_range.start()) / gain_range_width; + double norm_gain = (get_tx_gain(ALL_GAINS, chan) - gain_range.start()) / gain_range_width; // Avoid rounding errors: if (norm_gain > 1.0) return 1.0; if (norm_gain < 0.0) return 0.0; |