diff options
author | Nick Foster <nick@ettus.com> | 2011-05-26 14:08:16 -0700 |
---|---|---|
committer | Nick Foster <nick@ettus.com> | 2011-05-26 14:08:16 -0700 |
commit | 2374f70826211f963d3c868b0ae5ce6fb469e6d1 (patch) | |
tree | a663e71c71db91100a01f349649d0094d5f94b10 | |
parent | cf780ec405fe422ee186ff4b10c6f0f59c6a3628 (diff) | |
download | uhd-2374f70826211f963d3c868b0ae5ce6fb469e6d1.tar.gz uhd-2374f70826211f963d3c868b0ae5ce6fb469e6d1.tar.bz2 uhd-2374f70826211f963d3c868b0ae5ce6fb469e6d1.zip |
tx_waveforms: don't have to set time_spec for every pkt in the stream
-rw-r--r-- | host/examples/tx_waveforms.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp index 6b2ed82da..f150f520a 100644 --- a/host/examples/tx_waveforms.cpp +++ b/host/examples/tx_waveforms.cpp @@ -205,13 +205,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ theta = std::fmod(theta, 1); //send the entire contents of the buffer - size_t num_sent = usrp->get_device()->send( + usrp->get_device()->send( buffs, spb, md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::SEND_MODE_FULL_BUFF ); - md.time_spec += uhd::time_spec_t(0, num_sent, rate); + md.has_time_spec = false; } //send a mini EOB packet |