commit-gnuradio
[Top][All Lists]
Advanced

[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()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]