From b59d5407dcb59ec769f1bcba4b388e04f59c6f96 Mon Sep 17 00:00:00 2001 From: Derek Kozel Date: Sat, 8 Apr 2017 23:43:20 -0700 Subject: UHD: Fix get_normalized_tx_gain in multi_usrp --- host/lib/usrp/multi_usrp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 058925a9a..ac0f52255 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -1445,7 +1445,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; -- cgit v1.2.3