Author: trondeau
Date: 2008-01-14 07:06:01 -0700 (Mon, 14 Jan 2008)
New Revision: 7435

Modified:
   gnuradio/trunk/gnuradio-examples/python/ofdm/tunnel.py
Log:
Fixed tunnel.py to properly call send_pkt. Runs on USRP although I can't fully 
test it.

Modified: gnuradio/trunk/gnuradio-examples/python/ofdm/tunnel.py
===================================================================
--- gnuradio/trunk/gnuradio-examples/python/ofdm/tunnel.py      2008-01-14 
09:25:27 UTC (rev 7434)
+++ gnuradio/trunk/gnuradio-examples/python/ofdm/tunnel.py      2008-01-14 
14:06:01 UTC (rev 7435)
@@ -278,7 +278,7 @@
     def __init__(self, tun_fd, verbose=False):
         self.tun_fd = tun_fd       # file descriptor for TUN/TAP interface
         self.verbose = verbose
-        self.fg = None             # flow graph (access to PHY)
+        self.tb = None             # top block (access to PHY)
 
     def set_flow_graph(self, tb):
         self.tb = tb
@@ -307,7 +307,7 @@
         while 1:
             payload = os.read(self.tun_fd, 10*1024)
             if not payload:
-                self.tb.send_pkt(eof=True)
+                self.tb.txpath.send_pkt(eof=True)
                 break
 
             if self.verbose:
@@ -320,7 +320,7 @@
                 if delay < 0.050:
                     delay = delay * 2       # exponential back-off
 
-            self.tb.send_pkt(payload)
+            self.tb.txpath.send_pkt(payload)
 
 
 # /////////////////////////////////////////////////////////////////////////////



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to