diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-16 17:54:54 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-16 17:54:54 -0700 |
commit | 6458eca9540f11fb8dd5bee184e6124998023c4f (patch) | |
tree | 17d69f06e918b346e50e4b3aad24a1da071fd2cf /host/lib | |
parent | 52dc73891474827a9c686f73cbfe70618a2dd6e4 (diff) | |
download | uhd-6458eca9540f11fb8dd5bee184e6124998023c4f.tar.gz uhd-6458eca9540f11fb8dd5bee184e6124998023c4f.tar.bz2 uhd-6458eca9540f11fb8dd5bee184e6124998023c4f.zip |
Added recovery app to use raw socket to burn known ip addr.
Fixed up fw so the device can reply after new addrs are set.
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/device.cpp | 4 | ||||
-rw-r--r-- | host/lib/transport/udp_simple.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/device.cpp b/host/lib/device.cpp index a87ba83eb..897084427 100644 --- a/host/lib/device.cpp +++ b/host/lib/device.cpp @@ -109,14 +109,14 @@ device::sptr device::make(const device_addr_t &hint, size_t which){ //check that we found any devices if (dev_addr_makers.size() == 0){ throw std::runtime_error(str( - boost::format("No devices found for %s") % device_addr::to_string(hint) + boost::format("No devices found for ----->\n%s") % device_addr::to_string(hint) )); } //check that the which index is valid if (dev_addr_makers.size() <= which){ throw std::runtime_error(str( - boost::format("No device at index %d for %s") % which % device_addr::to_string(hint) + boost::format("No device at index %d for ----->\n%s") % which % device_addr::to_string(hint) )); } diff --git a/host/lib/transport/udp_simple.cpp b/host/lib/transport/udp_simple.cpp index 7004bdfdf..3c8ecb70d 100644 --- a/host/lib/transport/udp_simple.cpp +++ b/host/lib/transport/udp_simple.cpp @@ -38,7 +38,7 @@ static void reasonable_recv_timeout( boost::asio::ip::udp::socket &socket ){ boost::asio::deadline_timer timer(socket.get_io_service()); - timer.expires_from_now(boost::posix_time::milliseconds(50)); + timer.expires_from_now(boost::posix_time::milliseconds(100)); while (not (socket.available() or timer.expires_from_now().is_negative())){ boost::this_thread::sleep(boost::posix_time::milliseconds(1)); } |