summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2010-04-05 17:25:19 -0700
committerJosh Blum2010-04-05 17:25:19 -0700
commit8dfa110cf286db709a503adafc296a8b23225645 (patch)
treea68ddf7787790fedf6552e181518afa8660e55ac
parente390bcd9a69e13add9ffe3da430ba8ce19e88819 (diff)
downloadgnuradio-8dfa110cf286db709a503adafc296a8b23225645.tar.gz
gnuradio-8dfa110cf286db709a503adafc296a8b23225645.tar.bz2
gnuradio-8dfa110cf286db709a503adafc296a8b23225645.zip
fix for paradigm shift
-rw-r--r--gr-uhd/lib/uhd_simple_source.cc8
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;
}