From 8dfa110cf286db709a503adafc296a8b23225645 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 5 Apr 2010 17:25:19 -0700 Subject: fix for paradigm shift --- gr-uhd/lib/uhd_simple_source.cc | 8 ++++---- 1 file 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; } -- cgit