aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-08-25 22:05:07 +0200
committerMartin Braun <martin.braun@ettus.com>2014-08-25 22:05:07 +0200
commit5ffc835e2ea7760dfafc69cacaa73652d62b12ab (patch)
tree3d9390850ceee715d605f98688ac046fb1d36da7 /host
parenta9b927b53f6428737ea79671d36b8029dc559c4e (diff)
downloaduhd-5ffc835e2ea7760dfafc69cacaa73652d62b12ab.tar.gz
uhd-5ffc835e2ea7760dfafc69cacaa73652d62b12ab.tar.bz2
uhd-5ffc835e2ea7760dfafc69cacaa73652d62b12ab.zip
uhd: Added a stop stream cmd to the rx example
Diffstat (limited to 'host')
-rw-r--r--host/examples/rx_samples_to_file.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/examples/rx_samples_to_file.cpp b/host/examples/rx_samples_to_file.cpp
index e196b8592..19bfaa79e 100644
--- a/host/examples/rx_samples_to_file.cpp
+++ b/host/examples/rx_samples_to_file.cpp
@@ -140,6 +140,9 @@ template<typename samp_type> void recv_to_file(
break;
}
}
+
+ stream_cmd.stream_mode = uhd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS;
+ rx_stream->issue_stream_cmd(stream_cmd);
if (outfile.is_open())
outfile.close();