diff options
author | Josh Blum <josh@joshknows.com> | 2011-09-08 11:25:52 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-09-08 11:25:52 -0700 |
commit | 22b81899b3526d9e733421d04af6341aaabbd9a8 (patch) | |
tree | 6c017105e62cf03ee42198a9fc00039826a8a3f4 /host/lib/usrp/dboard | |
parent | 7d7a7e4069ce78a946762967530c121142db112b (diff) | |
download | uhd-22b81899b3526d9e733421d04af6341aaabbd9a8.tar.gz uhd-22b81899b3526d9e733421d04af6341aaabbd9a8.tar.bz2 uhd-22b81899b3526d9e733421d04af6341aaabbd9a8.zip |
wbx: fix bug in wbxv3 tx gain readback calculation
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/db_wbx_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_wbx_common.cpp b/host/lib/usrp/dboard/db_wbx_common.cpp index 1089dc7c2..c7f8ba55d 100644 --- a/host/lib/usrp/dboard/db_wbx_common.cpp +++ b/host/lib/usrp/dboard/db_wbx_common.cpp @@ -205,7 +205,7 @@ static int tx_pga0_gain_to_iobits(double &gain){ ) % attn % attn_code % (iobits & TX_ATTN_MASK) % TX_ATTN_MASK << std::endl; //the actual gain setting - gain = wbx_v3_tx_gain_ranges["PGA0"].stop() - double(attn_code)/2; + gain = wbx_v3_tx_gain_ranges["PGA0"].stop() - double(attn_code); return iobits; } |