aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-10-12 16:31:49 -0700
committerNick Foster <nick@nerdnetworks.org>2010-10-12 16:31:49 -0700
commit18c16ad9d793eeb3512e9d0a652402936746ba33 (patch)
tree02bab9cc28cfdd0a946437c1cb3d581d7d7faee1 /host/examples
parent5b4cbfe4616492d96ad1b48578cf2d94e1216bf4 (diff)
parent80469eedb76994b39a40ff94e31c4de924fc33e2 (diff)
downloaduhd-18c16ad9d793eeb3512e9d0a652402936746ba33.tar.gz
uhd-18c16ad9d793eeb3512e9d0a652402936746ba33.tar.bz2
uhd-18c16ad9d793eeb3512e9d0a652402936746ba33.zip
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/test_async_messages.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/host/examples/test_async_messages.cpp b/host/examples/test_async_messages.cpp
index 0a5c076ea..e4a996ef5 100644
--- a/host/examples/test_async_messages.cpp
+++ b/host/examples/test_async_messages.cpp
@@ -26,8 +26,6 @@
namespace po = boost::program_options;
-static const size_t async_to_ms = 100;
-
/*!
* Test that no messages are received:
* Send a burst of many samples that will fragment internally.
@@ -52,7 +50,7 @@ void test_no_async_message(uhd::usrp::single_usrp::sptr sdev){
);
uhd::async_metadata_t async_md;
- if (dev->recv_async_msg(async_md, async_to_ms)){
+ if (dev->recv_async_msg(async_md)){
std::cout << boost::format(
"failed:\n"
" Got unexpected event code 0x%x.\n"
@@ -88,7 +86,7 @@ void test_underflow_message(uhd::usrp::single_usrp::sptr sdev){
);
uhd::async_metadata_t async_md;
- if (not dev->recv_async_msg(async_md, async_to_ms)){
+ if (not dev->recv_async_msg(async_md)){
std::cout << boost::format(
"failed:\n"
" Async message recv timed out.\n"
@@ -135,7 +133,7 @@ void test_time_error_message(uhd::usrp::single_usrp::sptr sdev){
);
uhd::async_metadata_t async_md;
- if (not dev->recv_async_msg(async_md, async_to_ms)){
+ if (not dev->recv_async_msg(async_md)){
std::cout << boost::format(
"failed:\n"
" Async message recv timed out.\n"