diff options
-rw-r--r-- | gr-uhd/lib/uhd_simple_source.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-uhd/lib/uhd_simple_source.cc b/gr-uhd/lib/uhd_simple_source.cc index 4a40c2cfc..85e7f8f37 100644 --- a/gr-uhd/lib/uhd_simple_source.cc +++ b/gr-uhd/lib/uhd_simple_source.cc @@ -58,10 +58,10 @@ uhd_simple_source::~uhd_simple_source(void){ } void uhd_simple_source::set_streaming(bool enb){ - uhd::stream_cmd_t stream_cmd; - stream_cmd.stream_now = true; - stream_cmd.continuous = enb; - _dev->issue_stream_cmd(stream_cmd); + if (enb) + _dev->issue_stream_cmd(uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS); + else + _dev->issue_stream_cmd(uhd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); _is_streaming = enb; } |