From b4d58f3501596fdddf240d576d0b1b2cb5862892 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 31 Dec 2010 10:31:42 -0800 Subject: USRP1: REALLY fix the full-duplex case. --- host/lib/usrp/usrp1/dboard_iface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/usrp1/dboard_iface.cpp b/host/lib/usrp/usrp1/dboard_iface.cpp index c2c971269..4e47d6bf6 100644 --- a/host/lib/usrp/usrp1/dboard_iface.cpp +++ b/host/lib/usrp/usrp1/dboard_iface.cpp @@ -267,7 +267,7 @@ void usrp1_dboard_iface::_set_atr_reg(unit_t unit, atr_reg_t atr, boost::uint16_t value) { // Ignore unsupported states - if ((atr == ATR_REG_IDLE)) + if ((atr == ATR_REG_IDLE) || (atr == ATR_REG_TX_ONLY)) return; if(atr == ATR_REG_RX_ONLY) { switch(unit) { @@ -284,7 +284,7 @@ void usrp1_dboard_iface::_set_atr_reg(unit_t unit, _iface->poke32(FR_ATR_RXVAL_2, value); break; } - } else if (atr == ATR_REG_TX_ONLY && atr == ATR_REG_FULL_DUPLEX) { + } else if (atr == ATR_REG_FULL_DUPLEX) { switch(unit) { case UNIT_RX: if (_dboard_slot == usrp1_impl::DBOARD_SLOT_A) -- cgit v1.2.3