diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-27 14:10:50 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-27 14:10:50 -0700 |
commit | 4eff47a4b66eff61feffe6498b9ecebef94dc6b9 (patch) | |
tree | c2a431a614cdb2ee37af1af367dcfd83ef971e78 /host/lib/usrp | |
parent | 39943a5b0c3c210babfd6e62711ea4bf3133866b (diff) | |
download | uhd-4eff47a4b66eff61feffe6498b9ecebef94dc6b9.tar.gz uhd-4eff47a4b66eff61feffe6498b9ecebef94dc6b9.tar.bz2 uhd-4eff47a4b66eff61feffe6498b9ecebef94dc6b9.zip |
Tweak with the udp and zero-copy transport. Eventually, the caller will hang onto a ring of managed buffers.
Diffstat (limited to 'host/lib/usrp')
-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 b6ab919e7..79b18fb63 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -45,7 +45,7 @@ void usrp2_impl::io_init(void){ managed_send_buffer::sptr send_buff = _data_transport->get_send_buff(); boost::uint32_t data = htonl(USRP2_INVALID_VRT_HEADER); memcpy(send_buff->cast<void*>(), &data, sizeof(data)); - send_buff->done(sizeof(data)); + send_buff->commit(sizeof(data)); //setup RX DSP regs std::cout << "RX samples per packet: " << get_max_recv_samps_per_packet() << std::endl; |