aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_iface.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-18 12:33:36 -0700
committerJosh Blum <josh@joshknows.com>2010-06-18 12:33:36 -0700
commitdf80be9c61d95402976d3349acf62630044c1939 (patch)
tree349da246fb6e13f859797242e67a4355a9fbd0ea /host/lib/usrp/usrp2/usrp2_iface.cpp
parente16adfd201a4a51d9fbd7e1be45cd8d9b33177f5 (diff)
parenta950a544f5c3beb7430a0748b7e76fd6cb713514 (diff)
downloaduhd-df80be9c61d95402976d3349acf62630044c1939.tar.gz
uhd-df80be9c61d95402976d3349acf62630044c1939.tar.bz2
uhd-df80be9c61d95402976d3349acf62630044c1939.zip
Merge branch 'i2c_resize' into pre_merge
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_iface.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_iface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp
index 6e0d3266a..83e98904e 100644
--- a/host/lib/usrp/usrp2/usrp2_iface.cpp
+++ b/host/lib/usrp/usrp2/usrp2_iface.cpp
@@ -146,7 +146,7 @@ public:
_ctrl_transport->send(boost::asio::buffer(&out_copy, sizeof(usrp2_ctrl_data_t)));
//loop until we get the packet or timeout
- boost::uint8_t usrp2_ctrl_data_in_mem[1500]; //allocate MTU bytes for recv
+ boost::uint8_t usrp2_ctrl_data_in_mem[USRP2_UDP_BYTES]; //allocate max bytes for recv
usrp2_ctrl_data_t *ctrl_data_in = reinterpret_cast<usrp2_ctrl_data_t *>(usrp2_ctrl_data_in_mem);
while(true){
size_t len = _ctrl_transport->recv(boost::asio::buffer(usrp2_ctrl_data_in_mem));