From 0bee80caee6ec5a16cf3e86d16d5de0d5ce3b1c3 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Thu, 26 May 2011 17:13:18 -0700 Subject: minor change to tx_bursts --- host/examples/tx_bursts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/examples') 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){ -- cgit v1.2.3