summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1
diff options
context:
space:
mode:
authorThomas Tsou <ttsou@vt.edu>2010-08-16 16:31:48 -0700
committerThomas Tsou <ttsou@vt.edu>2010-08-16 18:35:38 -0700
commitcc6bbf949f8e4eabefdccf8d8cc4d9ed803ce40e (patch)
treeb67e4fbadd60305888ec3d6fcd78ea3330accf5c /host/lib/usrp/usrp1
parentdf74cfa4ad134faeafd9fb97420db8acb227d9af (diff)
downloaduhd-cc6bbf949f8e4eabefdccf8d8cc4d9ed803ce40e.tar.gz
uhd-cc6bbf949f8e4eabefdccf8d8cc4d9ed803ce40e.tar.bz2
uhd-cc6bbf949f8e4eabefdccf8d8cc4d9ed803ce40e.zip
usrp1: Remove error message for unsupported ATR registers
Diffstat (limited to 'host/lib/usrp/usrp1')
-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: