diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-03 01:04:36 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-03 01:04:36 +0000 |
commit | 565e46fa1038bebf59257a8b3eefae4487cf0946 (patch) | |
tree | bc5c9085824cc61bf5c5479d5c357e6ec37fdb58 /host/lib/usrp/usrp2/dboard_iface.cpp | |
parent | 66deed6015f2a2bc67f17f6630ca62a41b596090 (diff) | |
parent | b2054a45d45ba85e30ff601159b18f5ebd15dd76 (diff) | |
download | uhd-565e46fa1038bebf59257a8b3eefae4487cf0946.tar.gz uhd-565e46fa1038bebf59257a8b3eefae4487cf0946.tar.bz2 uhd-565e46fa1038bebf59257a8b3eefae4487cf0946.zip |
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_iface.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/dboard_iface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/dboard_iface.cpp b/host/lib/usrp/usrp2/dboard_iface.cpp index 0a2e4b550..2621d43b4 100644 --- a/host/lib/usrp/usrp2/dboard_iface.cpp +++ b/host/lib/usrp/usrp2/dboard_iface.cpp @@ -136,7 +136,7 @@ void usrp2_dboard_iface::set_pin_ctrl(unit_t unit, boost::uint16_t value){ //calculate the new selection mux setting boost::uint32_t new_sels = 0x0; for(size_t i = 0; i < 16; i++){ - bool is_bit_set = bool(value & (0x1 << i)); + bool is_bit_set = (value & (0x1 << i)) != 0; new_sels |= ((is_bit_set)? FRF_GPIO_SEL_ATR : FRF_GPIO_SEL_GPIO) << (i*2); } |