diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-11 16:08:22 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-11-11 16:08:22 -0800 |
commit | 478f8174601350ad0edd52bb985657037b181a2d (patch) | |
tree | c724b1ed9798bb73784b992bf0cffdcf90f6c001 | |
parent | 628ec66a7ce6ee92e923818b0cff920458c7102a (diff) | |
parent | 5bcfc2c9fb6f190580c3d9200acc7d04b4ca3c1c (diff) | |
download | uhd-478f8174601350ad0edd52bb985657037b181a2d.tar.gz uhd-478f8174601350ad0edd52bb985657037b181a2d.tar.bz2 uhd-478f8174601350ad0edd52bb985657037b181a2d.zip |
Merge branch 'master' into usrp2p
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 5f549c4fd..01a753d9e 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -36,9 +36,6 @@ using namespace uhd::usrp; using namespace uhd::transport; namespace asio = boost::asio; -//! wait this long for a control response when discovering devices -static const size_t DISCOVERY_TIMEOUT_MS = 100; - /*********************************************************************** * Helper Functions **********************************************************************/ @@ -100,7 +97,7 @@ static uhd::device_addrs_t usrp2_find(const device_addr_t &hint){ boost::uint8_t usrp2_ctrl_data_in_mem[udp_simple::mtu]; //allocate max bytes for recv const usrp2_ctrl_data_t *ctrl_data_in = reinterpret_cast<const usrp2_ctrl_data_t *>(usrp2_ctrl_data_in_mem); while(true){ - size_t len = udp_transport->recv(asio::buffer(usrp2_ctrl_data_in_mem), DISCOVERY_TIMEOUT_MS); + size_t len = udp_transport->recv(asio::buffer(usrp2_ctrl_data_in_mem)); //std::cout << len << "\n"; if (len > offsetof(usrp2_ctrl_data_t, data) and ntohl(ctrl_data_in->id) == USRP2_CTRL_ID_WAZZUP_DUDE){ //make a boost asio ipv4 with the raw addr in host byte order |