summaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-14 16:51:47 -0700
committerJosh Blum <josh@joshknows.com>2010-10-14 16:51:47 -0700
commit71e1763332141603e9edba097fd19b00e9a76ab8 (patch)
tree9d216251fc58d2e731bb79d26aefa29480c9b2ac /host/examples
parent4582a2deb385c0a4849f5d20c44a5469779bcbb2 (diff)
downloaduhd-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')
-rw-r--r--host/examples/test_async_messages.cpp8
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
);