commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10148 - in gnuradio/branches/features/cppdb-test: gr-


From: jcorgan
Subject: [Commit-gnuradio] r10148 - in gnuradio/branches/features/cppdb-test: gr-usrp/src usrp/host/lib/legacy
Date: Sun, 21 Dec 2008 10:02:34 -0700 (MST)

Author: jcorgan
Date: 2008-12-21 10:02:34 -0700 (Sun, 21 Dec 2008)
New Revision: 10148

Modified:
   gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp.i
   gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i
Log:
Move free function to proper .i file

Modified: gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp.i
===================================================================
--- gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp.i    2008-12-21 
02:11:49 UTC (rev 10147)
+++ gnuradio/branches/features/cppdb-test/gr-usrp/src/usrp.i    2008-12-21 
17:02:34 UTC (rev 10148)
@@ -86,6 +86,10 @@
     else:
         return None
 
+# Allow to be called as a free function
+def tune(u, chan, subdev, target_freq):
+    return u.tune(chan, subdev, target_freq)
+
 # Allow to be called as free function
 def determine_tx_mux_value(u, subdev_spec):
     return u.determine_tx_mux_value(subdev_spec)

Modified: gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i
===================================================================
--- gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i        
2008-12-21 02:11:49 UTC (rev 10147)
+++ gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i        
2008-12-21 17:02:34 UTC (rev 10148)
@@ -99,6 +99,4 @@
   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())
 
-  def tune(u, chan, subdev, target_freq):
-      return u.tune(chan, subdev, target_freq)
 %}





reply via email to

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