diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-04 15:41:34 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-04 15:41:34 -0700 |
commit | c2dc0fe98ddc6441cb989a49384b0c305a955368 (patch) | |
tree | 4c9cbadb86f34351268d4d081c0e20df919b421b /host/examples/tx_timed_samples.cpp | |
parent | 5bd863efa05f3c6cfd672cffe87f57b33d1c32b5 (diff) | |
download | uhd-c2dc0fe98ddc6441cb989a49384b0c305a955368.tar.gz uhd-c2dc0fe98ddc6441cb989a49384b0c305a955368.tar.bz2 uhd-c2dc0fe98ddc6441cb989a49384b0c305a955368.zip |
timeout: proper way to check for timeout in full buff mode
Diffstat (limited to 'host/examples/tx_timed_samples.cpp')
-rw-r--r-- | host/examples/tx_timed_samples.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp index 2a15b2f66..863446682 100644 --- a/host/examples/tx_timed_samples.cpp +++ b/host/examples/tx_timed_samples.cpp @@ -99,7 +99,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //send will backup into the host this many seconds before sending: seconds_in_future + 0.1 //timeout (delay before transmit + padding) ); - if (num_tx_samps == 0) std::cout << "Send timeout..." << std::endl; + if (num_tx_samps < samps_to_send) std::cout << "Send timeout..." << std::endl; if(verbose) std::cout << std::endl << boost::format("Sent %d samples") % num_tx_samps << std::endl; } |