[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/14: uhd: Fixes for CID 1296559 and 10900
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/14: uhd: Fixes for CID 1296559 and 1090067 and more |
Date: |
Wed, 6 May 2015 21:31:02 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit af939aaee4da102f5fa5500c7bda1ca52d67e335
Author: Martin Braun <address@hidden>
Date: Mon May 4 17:18:07 2015 -0700
uhd: Fixes for CID 1296559 and 1090067 and more
Also removed spurious code that should have gone out in the previous
refactoring.
---
gr-uhd/lib/usrp_sink_impl.cc | 2 +-
gr-uhd/lib/usrp_source_impl.cc | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gr-uhd/lib/usrp_sink_impl.cc b/gr-uhd/lib/usrp_sink_impl.cc
index 513dfaf..98d5486 100644
--- a/gr-uhd/lib/usrp_sink_impl.cc
+++ b/gr-uhd/lib/usrp_sink_impl.cc
@@ -71,7 +71,7 @@ namespace gr {
_length_tag_key(length_tag_name.empty() ? pmt::PMT_NIL :
pmt::string_to_symbol(length_tag_name)),
_nitems_to_send(0)
{
- // nop
+ _sample_rate = get_samp_rate();
}
usrp_sink_impl::~usrp_sink_impl()
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc
index 4265535..d2d12c2 100644
--- a/gr-uhd/lib/usrp_source_impl.cc
+++ b/gr-uhd/lib/usrp_source_impl.cc
@@ -71,6 +71,12 @@ namespace gr {
std::stringstream str;
str << name() << unique_id();
_id = pmt::string_to_symbol(str.str());
+
+ _samp_rate = this->get_samp_rate();
+ _center_freq = this->get_center_freq(0);
+#ifdef GR_UHD_USE_STREAM_API
+ _samps_per_packet = 1;
+#endif
}
usrp_source_impl::~usrp_source_impl()
- [Commit-gnuradio] [gnuradio] branch master updated (06a7a77 -> a693941), git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 01/14: Print scan rate, git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 08/14: controlport: this fixes a complaint by newer versions of Boost., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 06/14: controlport: fixing complaints about no non-virtual dtor., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 09/14: Merge branch 'maint', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 02/14: uhd: Fixes for CID 1296559 and 1090067 and more,
git <=
- [Commit-gnuradio] [gnuradio] 05/14: controlport: build: allowing ControlPort and probes in static builds., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 04/14: uhd: Updated frequency hopping example to do DSP tuning only, git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 12/14: Merge remote-tracking branch 'mbant/uhd/cids-59-67-master', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 10/14: Merge remote-tracking branch 'ckuethe/spectrum_sense', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 11/14: Merge remote-tracking branch 'trondeau/controlport/cleaning_up', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 07/14: controlport: android: cleaning up; better logs; help to support android., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 13/14: Merge remote-tracking branch 'mbant/uhd/message_updates', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 14/14: uhd: changing uhd_msg_tune example to use other forms of setting parameters., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 03/14: uhd: Updated command interface to match new message command format, git, 2015/05/06