aboutsummaryrefslogtreecommitdiffstats
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-27 09:48:13 +0200
commit6d99396a8355bb6273564857716f4504053d0882 (patch)
tree9eb3d3e916d2660054d20bde38ae1a12a02eb882
parent25f67e01ae29ae5039b0454200589214a566618f (diff)
downloaduhd-6d99396a8355bb6273564857716f4504053d0882.tar.gz
uhd-6d99396a8355bb6273564857716f4504053d0882.tar.bz2
uhd-6d99396a8355bb6273564857716f4504053d0882.zip
uhd: Added a stop stream cmd to the rx example
-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();