[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/02: gr-uhd: use stream api for issue_str
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/02: gr-uhd: use stream api for issue_stream_cmd |
Date: |
Mon, 6 Mar 2017 03:55:48 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch next
in repository gnuradio.
commit 061f50dc3a3b8be13a32ab0ff653e180117ac301
Author: Andrej Rode <address@hidden>
Date: Fri Dec 9 14:59:55 2016 -0800
gr-uhd: use stream api for issue_stream_cmd
---
gr-uhd/lib/usrp_source_impl.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc
index 8cdaebc..b341075 100644
--- a/gr-uhd/lib/usrp_source_impl.cc
+++ b/gr-uhd/lib/usrp_source_impl.cc
@@ -440,10 +440,15 @@ namespace gr {
void
usrp_source_impl::issue_stream_cmd(const ::uhd::stream_cmd_t &cmd)
{
+// This is a new define in UHD 3.6 which is used to separate 3.6 and pre 3.6
+#ifdef INCLUDED_UHD_UTILS_MSG_TASK_HPP
+ _rx_stream->issue_stream_cmd(cmd);
+#else
for (size_t i = 0; i < _stream_args.channels.size(); i++)
{
_dev->issue_stream_cmd(cmd, _stream_args.channels[i]);
}
+#endif
_tag_now = true;
}