aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul David <DaulPavid@users.noreply.github.com>2016-03-03 16:10:17 -0800
committerMartin Braun <martin.braun@ettus.com>2016-03-03 16:13:20 -0800
commit7b268bdb82959dd1df3657697dc26594b1ffd2d6 (patch)
tree6c65e1d4d5d574426bc4f5e9976332e1ae4a5dd0
parenta9de87e33dc75bea0c7f3e814fbb1616029ac8c8 (diff)
downloaduhd-7b268bdb82959dd1df3657697dc26594b1ffd2d6.tar.gz
uhd-7b268bdb82959dd1df3657697dc26594b1ffd2d6.tar.bz2
uhd-7b268bdb82959dd1df3657697dc26594b1ffd2d6.zip
examples: TX/RX loopback stopping condition was reversed
No data was getting stored.
-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 0ce7ac52a..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