From db5eb3828416c091b45a1d90522e2bede730f38a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 8 Nov 2011 11:29:45 -0800 Subject: usrp1: fix typo when calculating rx_dc_offset register --- host/lib/usrp/usrp1/usrp1_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp index 4be5a3a2b..00e04375c 100644 --- a/host/lib/usrp/usrp1/usrp1_impl.cpp +++ b/host/lib/usrp/usrp1/usrp1_impl.cpp @@ -462,7 +462,7 @@ uhd::meta_range_t usrp1_impl::get_tx_dsp_freq_range(void){ void usrp1_impl::set_enb_rx_dc_offset(const std::string &db, const bool enb){ const size_t shift = (db == "A")? 0 : 2; _rx_dc_offset_shadow &= ~(0x3 << shift); //clear bits - _rx_dc_offset_shadow &= ((enb)? 0x3 : 0x0) << shift; + _rx_dc_offset_shadow |= ((enb)? 0x3 : 0x0) << shift; _iface->poke32(FR_DC_OFFSET_CL_EN, _rx_dc_offset_shadow & 0xf); } -- cgit v1.2.3