aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-03-11 09:46:29 -0800
committerMartin Braun <martin.braun@ettus.com>2016-03-11 09:46:29 -0800
commit94230735279c721424ef001a799c780dc937a091 (patch)
treec476b516144b76730cc18788cba2b0c712a917b2 /host/examples
parent165fd400e995c9652c2dfe85c2fd589b750a2620 (diff)
parentccc8acb743aaab6cd3e926d5901fa3fa4114a469 (diff)
downloaduhd-94230735279c721424ef001a799c780dc937a091.tar.gz
uhd-94230735279c721424ef001a799c780dc937a091.tar.bz2
uhd-94230735279c721424ef001a799c780dc937a091.zip
Merge branch 'maint'
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/txrx_loopback_to_file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp
index 7dc3bd9c2..eb2cd72a3 100644
--- a/host/examples/txrx_loopback_to_file.cpp
+++ b/host/examples/txrx_loopback_to_file.cpp
@@ -149,7 +149,7 @@ template<typename samp_type> void recv_to_file(
stream_cmd.time_spec = uhd::time_spec_t(settling_time);
rx_stream->issue_stream_cmd(stream_cmd);
- while(not stop_signal_called and (num_requested_samples != num_total_samps or num_requested_samples == 0)){
+ while(not stop_signal_called and (num_requested_samples > num_total_samps or num_requested_samples == 0)){
size_t num_rx_samps = rx_stream->recv(buff_ptrs, samps_per_buff, md, timeout);
timeout = 0.1f; //small timeout for subsequent recv