summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp1/dboard_iface.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp1/dboard_iface.cpp b/host/lib/usrp/usrp1/dboard_iface.cpp
index fe4ebe04c..f6fbab033 100644
--- a/host/lib/usrp/usrp1/dboard_iface.cpp
+++ b/host/lib/usrp/usrp1/dboard_iface.cpp
@@ -225,11 +225,9 @@ boost::uint16_t usrp1_dboard_iface::read_gpio(unit_t unit)
void usrp1_dboard_iface::set_atr_reg(unit_t unit,
atr_reg_t atr, boost::uint16_t value)
{
- if ((atr == ATR_REG_IDLE) || (atr == ATR_REG_FULL_DUPLEX)) {
- //TODO probably just ignore these two atr settings because all dboards will try to set them
- std::cerr << "error: set_atr_reg(): unsupported state" << std::endl;
+ // Ignore unsupported states
+ if ((atr == ATR_REG_IDLE) || (atr == ATR_REG_FULL_DUPLEX))
return;
- }
switch(unit) {
case UNIT_RX: