diff options
author | Derek Kozel <derek.kozel@ettus.com> | 2017-04-08 23:43:20 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-04-09 15:35:45 -0700 |
commit | b59d5407dcb59ec769f1bcba4b388e04f59c6f96 (patch) | |
tree | fdddc92c3164e39fe40df36cb9183d4c2e3e803e | |
parent | 748689ae5402b154d78b60d61b67cb96b50d7916 (diff) | |
download | uhd-b59d5407dcb59ec769f1bcba4b388e04f59c6f96.tar.gz uhd-b59d5407dcb59ec769f1bcba4b388e04f59c6f96.tar.bz2 uhd-b59d5407dcb59ec769f1bcba4b388e04f59c6f96.zip |
UHD: Fix get_normalized_tx_gain in multi_usrp
-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 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; |