diff options
author | Josh Blum <josh@joshknows.com> | 2011-04-27 19:12:53 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-04-27 19:12:53 -0700 |
commit | caff65d7e140d6340cef6ccd64ef250a735c09f9 (patch) | |
tree | e9ba99f301352443dbdc59351a68eea62611ab9f /host/lib/usrp/usrp1 | |
parent | 1e7227319cdf9098c6ddf344ad5bbd2c82ca2cda (diff) | |
download | uhd-caff65d7e140d6340cef6ccd64ef250a735c09f9.tar.gz uhd-caff65d7e140d6340cef6ccd64ef250a735c09f9.tar.bz2 uhd-caff65d7e140d6340cef6ccd64ef250a735c09f9.zip |
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.
Diffstat (limited to 'host/lib/usrp/usrp1')
-rw-r--r-- | host/lib/usrp/usrp1/io_impl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |