aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-11 09:33:58 -0800
committerJosh Blum <josh@joshknows.com>2011-03-11 09:33:58 -0800
commitab263488b00622b94e4644ea432c8185d58501c6 (patch)
tree2e814a00e5e2a1668f4148585dcc2782e9d50ae7
parent2da8a0ae843de2035cd46a65a8780c4210d487d7 (diff)
downloaduhd-ab263488b00622b94e4644ea432c8185d58501c6.tar.gz
uhd-ab263488b00622b94e4644ea432c8185d58501c6.tar.bz2
uhd-ab263488b00622b94e4644ea432c8185d58501c6.zip
usrp2: bump up timeout on mtu discovery (seen to be a bit too small on windows vbox)
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index 14b26410d..cb4d793ab 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -169,7 +169,7 @@ static mtu_result_t determine_mtu(const std::string &addr){
//require that buffering to be used internally, and this is a safe setting.
boost::uint8_t buffer[2000];
usrp2_ctrl_data_t *ctrl_data = reinterpret_cast<usrp2_ctrl_data_t *>(buffer);
- static const double echo_timeout = 0.010; //10 ms
+ static const double echo_timeout = 0.020; //20 ms
size_t min_recv_mtu = sizeof(usrp2_ctrl_data_t), max_recv_mtu = sizeof(buffer);
size_t min_send_mtu = sizeof(usrp2_ctrl_data_t), max_send_mtu = sizeof(buffer);