diff options
author | Eric Blossom | 2010-11-16 21:40:55 -0800 |
---|---|---|
committer | Eric Blossom | 2010-11-16 21:40:55 -0800 |
commit | 8c81cf7d318d99f508e81bffcfd4c12ba0a2966e (patch) | |
tree | 26952dd5223873cc64852f0ef16d0510993a62ca /usrp/host | |
parent | 8180bb1d7020e07c9b0a217820c68d07f0d98a74 (diff) | |
download | gnuradio-8c81cf7d318d99f508e81bffcfd4c12ba0a2966e.tar.gz gnuradio-8c81cf7d318d99f508e81bffcfd4c12ba0a2966e.tar.bz2 gnuradio-8c81cf7d318d99f508e81bffcfd4c12ba0a2966e.zip |
Fix guile related problem with gr-usrp
Diffstat (limited to 'usrp/host')
-rw-r--r-- | usrp/host/include/usrp/db_base.i | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usrp/host/include/usrp/db_base.i b/usrp/host/include/usrp/db_base.i index 78c72b8c3..fdabd4f99 100644 --- a/usrp/host/include/usrp/db_base.i +++ b/usrp/host/include/usrp/db_base.i @@ -91,6 +91,7 @@ typedef boost::shared_ptr<db_base> db_base_sptr; %template(db_base_sptr_vector) std::vector<db_base_sptr>; %template(db_base_sptr_vector_vector) std::vector<std::vector<db_base_sptr> >; +#ifdef SWIGPYTHON // Set better class name in Python // Enable freq_range and gain_range from public methods of class not implemented in C++ // And create a dummy wrapper for backwards compatability with some of the example code @@ -98,5 +99,5 @@ typedef boost::shared_ptr<db_base> db_base_sptr; db_base_sptr.__repr__ = lambda self: "<db_base::%s>" % (self.name(),) db_base_sptr.freq_range = lambda self: (self.freq_min(), self.freq_max(), 1) db_base_sptr.gain_range = lambda self: (self.gain_min(), self.gain_max(), self.gain_db_per_step()) - %} +#endif |