From 5ffc835e2ea7760dfafc69cacaa73652d62b12ab Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 25 Aug 2014 22:05:07 +0200 Subject: uhd: Added a stop stream cmd to the rx example --- host/examples/rx_samples_to_file.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 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(); -- cgit v1.2.3