aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-20 13:41:17 -0700
committerJosh Blum <josh@joshknows.com>2010-04-20 13:41:17 -0700
commit698cfaef0c6dda64aa23793e5f32d3084c003ea5 (patch)
tree81a6d0514318855faf1d896051d87d5feeed9ae9 /host
parenteae0bec99bca5efa1e86faa03132ec5e8aca5fe5 (diff)
downloaduhd-698cfaef0c6dda64aa23793e5f32d3084c003ea5.tar.gz
uhd-698cfaef0c6dda64aa23793e5f32d3084c003ea5.tar.bz2
uhd-698cfaef0c6dda64aa23793e5f32d3084c003ea5.zip
windows warning fix
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp2/dboard_iface.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/dboard_iface.cpp b/host/lib/usrp/usrp2/dboard_iface.cpp
index 591e958cb..e9acddee6 100644
--- a/host/lib/usrp/usrp2/dboard_iface.cpp
+++ b/host/lib/usrp/usrp2/dboard_iface.cpp
@@ -300,11 +300,10 @@ float usrp2_dboard_iface::read_aux_adc(unit_t unit, int which){
unit_to_spi_adc[unit], config,
ad7922_regs.get_reg(), 16, false /*no rb*/
);
- boost::uint16_t reg = _iface->transact_spi(
+ ad7922_regs.set_reg(boost::uint16_t(_iface->transact_spi(
unit_to_spi_adc[unit], config,
ad7922_regs.get_reg(), 16, true /*rb*/
- );
- ad7922_regs.set_reg(reg);
+ )));
//convert to voltage and return
return float(3.3*ad7922_regs.result/4095);