diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-14 16:51:47 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-14 16:51:47 -0700 |
commit | 71e1763332141603e9edba097fd19b00e9a76ab8 (patch) | |
tree | 9d216251fc58d2e731bb79d26aefa29480c9b2ac /host/examples/test_async_messages.cpp | |
parent | 4582a2deb385c0a4849f5d20c44a5469779bcbb2 (diff) | |
download | uhd-71e1763332141603e9edba097fd19b00e9a76ab8.tar.gz uhd-71e1763332141603e9edba097fd19b00e9a76ab8.tar.bz2 uhd-71e1763332141603e9edba097fd19b00e9a76ab8.zip |
uhd: removed 1 sample buffers in test async messages
made a hack in the vrt handler to bump 0 sample requests up to 1 sample (until the hardware supports it)
Diffstat (limited to 'host/examples/test_async_messages.cpp')
-rw-r--r-- | host/examples/test_async_messages.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/host/examples/test_async_messages.cpp b/host/examples/test_async_messages.cpp index bdee7a504..61db7ec04 100644 --- a/host/examples/test_async_messages.cpp +++ b/host/examples/test_async_messages.cpp @@ -93,10 +93,8 @@ bool test_underflow_message(uhd::usrp::single_usrp::sptr sdev){ md.end_of_burst = false; md.has_time_spec = false; - std::vector<std::complex<float> > buff(1); //minimum 1 sample - dev->send( - &buff.front(), buff.size(), md, + NULL, 0, md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::SEND_MODE_FULL_BUFF ); @@ -144,10 +142,8 @@ bool test_time_error_message(uhd::usrp::single_usrp::sptr sdev){ sdev->set_time_now(uhd::time_spec_t(200.0)); //time at 200s - std::vector<std::complex<float> > buff(1); //minimum 1 sample - dev->send( - &buff.front(), buff.size(), md, + NULL, 0, md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::SEND_MODE_FULL_BUFF ); |