diff options
author | Josh Blum <josh@joshknows.com> | 2012-08-14 13:47:48 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-08-14 13:47:48 -0700 |
commit | 584b7ae26c4e61688c06043a0587ca50ac83b1dc (patch) | |
tree | cb318b615779225abd942cddd73bc3b91562feee /host/lib/usrp | |
parent | 8e3ee0021eacb135c0826e73f40dfa533fada0a0 (diff) | |
download | uhd-584b7ae26c4e61688c06043a0587ca50ac83b1dc.tar.gz uhd-584b7ae26c4e61688c06043a0587ca50ac83b1dc.tar.bz2 uhd-584b7ae26c4e61688c06043a0587ca50ac83b1dc.zip |
usrp2: fix program_stream_dest (arp for dest)
The send buffer should be reset ASAP so it gets flushed out.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index ea4aa716c..e06cf8f6f 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -395,6 +395,7 @@ void usrp2_impl::program_stream_dest( managed_send_buffer::sptr send_buff = xport->get_send_buff(); std::memcpy(send_buff->cast<void *>(), &stream_ctrl, sizeof(stream_ctrl)); send_buff->commit(sizeof(stream_ctrl)); + send_buff.reset(); boost::this_thread::sleep(boost::posix_time::milliseconds(300)); managed_recv_buffer::sptr recv_buff = xport->get_recv_buff(0.0); if (recv_buff and recv_buff->size() >= sizeof(boost::uint32_t)){ |