diff options
| author | Josh Blum <josh@joshknows.com> | 2011-11-08 11:29:45 -0800 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2011-11-08 11:29:45 -0800 | 
| commit | db5eb3828416c091b45a1d90522e2bede730f38a (patch) | |
| tree | e258f12843732082178eb6a19184675b0a0c4bea | |
| parent | 0ea2683862fedf27d23ee2ad23e119edc1bf610c (diff) | |
| download | uhd-db5eb3828416c091b45a1d90522e2bede730f38a.tar.gz uhd-db5eb3828416c091b45a1d90522e2bede730f38a.tar.bz2 uhd-db5eb3828416c091b45a1d90522e2bede730f38a.zip | |
usrp1: fix typo when calculating rx_dc_offset register
| -rw-r--r-- | host/lib/usrp/usrp1/usrp1_impl.cpp | 2 | 
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);  } | 
