diff options
author | Nick Foster <nick@ettus.com> | 2011-05-26 17:13:18 -0700 |
---|---|---|
committer | Nick Foster <nick@ettus.com> | 2011-05-26 17:13:18 -0700 |
commit | 0bee80caee6ec5a16cf3e86d16d5de0d5ce3b1c3 (patch) | |
tree | 23faaf49c4f44eefebcc78941ffec41d1adfd628 /host/examples | |
parent | d5a8a22b4e04116019db4efdfd5d8e7093700a86 (diff) | |
download | uhd-0bee80caee6ec5a16cf3e86d16d5de0d5ce3b1c3.tar.gz uhd-0bee80caee6ec5a16cf3e86d16d5de0d5ce3b1c3.tar.bz2 uhd-0bee80caee6ec5a16cf3e86d16d5de0d5ce3b1c3.zip |
minor change to tx_bursts
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/tx_bursts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/tx_bursts.cpp b/host/examples/tx_bursts.cpp index e5d1ec73e..36eff6d94 100644 --- a/host/examples/tx_bursts.cpp +++ b/host/examples/tx_bursts.cpp @@ -115,7 +115,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ md.time_spec = uhd::time_spec_t(time_to_send); //the first call to send() will block this many seconds before sending: - double timeout = seconds_in_future + 0.1; //timeout (delay before transmit + padding) + double timeout = std::max(rep_rate, seconds_in_future) + 0.1; //timeout (delay before transmit + padding) size_t num_acc_samps = 0; //number of accumulated samples while(num_acc_samps < total_num_samps){ |