aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}