From caff65d7e140d6340cef6ccd64ef250a735c09f9 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 27 Apr 2011 19:12:53 -0700 Subject: usrp1: fix for tx under remainder conditions The remainder was accidentally lost because the offset to the buffer was not propagated outside of the commit function. --- host/lib/usrp/usrp1/io_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/usrp1/io_impl.cpp b/host/lib/usrp/usrp1/io_impl.cpp index b3268298e..8fb639c4a 100644 --- a/host/lib/usrp/usrp1/io_impl.cpp +++ b/host/lib/usrp/usrp1/io_impl.cpp @@ -180,6 +180,9 @@ void usrp1_impl::io_impl::commit_send_buff( //commit the current buffer curr.buff->commit(num_bytes_to_commit); + + //store the next buffer for the next call + curr_buff = next; } /*! @@ -216,9 +219,6 @@ bool usrp1_impl::io_impl::get_send_buffs( //make a new managed buffer with the offset buffs buffs[0] = omsb.get_new(curr_buff, next_buff); - //store the next buffer for the next call - curr_buff = next_buff; - return true; } -- cgit v1.2.3