diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-11 18:38:06 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-11 18:38:06 -0700 |
commit | b49e2955b0f68d59e7903f89a26c39dc9b3614fd (patch) | |
tree | fcdc50d9cf78b482de1d3227c0b5dec05be6bfae /host/lib/usrp/usrp2/io_impl.cpp | |
parent | d54fd2abffd8849bf41a5f8084a828e6472ba342 (diff) | |
download | uhd-b49e2955b0f68d59e7903f89a26c39dc9b3614fd.tar.gz uhd-b49e2955b0f68d59e7903f89a26c39dc9b3614fd.tar.bz2 uhd-b49e2955b0f68d59e7903f89a26c39dc9b3614fd.zip |
usrp2: enable the cycles per ack, and drain recv without the timeout (fixes previous conflict)
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index 2d1ebe57b..c9271cc8c 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -250,7 +250,7 @@ void usrp2_impl::io_init(void){ std::memcpy(send_buff->cast<void*>(), &data, sizeof(data)); send_buff->commit(sizeof(data)); //drain the recv buffers (may have junk) - while (data_transport->get_recv_buff().get()){}; + while (data_transport->get_recv_buff(0).get()){}; } //the assumption is that all data transports should be identical |