aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_wbx_common.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-09-08 11:25:52 -0700
committerJosh Blum <josh@joshknows.com>2011-09-08 11:28:28 -0700
commit61ff49100f61244399d7705a153988c54228ffed (patch)
tree76396fa00cf5a271c304708f543ff3de3eeba0e1 /host/lib/usrp/dboard/db_wbx_common.cpp
parentbfe97dfb801c0b5624fe1a915e8c7f41defe2349 (diff)
downloaduhd-61ff49100f61244399d7705a153988c54228ffed.tar.gz
uhd-61ff49100f61244399d7705a153988c54228ffed.tar.bz2
uhd-61ff49100f61244399d7705a153988c54228ffed.zip
wbx: fix bug in wbxv3 tx gain readback calculation
Diffstat (limited to 'host/lib/usrp/dboard/db_wbx_common.cpp')
-rw-r--r--host/lib/usrp/dboard/db_wbx_common.cpp2
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;
}