summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/ofdm
diff options
context:
space:
mode:
authortrondeau2008-01-14 14:06:01 +0000
committertrondeau2008-01-14 14:06:01 +0000
commitc134910514da25ea27142022c90fe384395668e4 (patch)
tree9460d2cf9514cafdf1ec717eb446a10a7987232c /gnuradio-examples/python/ofdm
parent4022e568aa33f223df17b869af80f5c6565df286 (diff)
downloadgnuradio-c134910514da25ea27142022c90fe384395668e4.tar.gz
gnuradio-c134910514da25ea27142022c90fe384395668e4.tar.bz2
gnuradio-c134910514da25ea27142022c90fe384395668e4.zip
Fixed tunnel.py to properly call send_pkt. Runs on USRP although I can't fully test it.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7435 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/ofdm')
-rwxr-xr-xgnuradio-examples/python/ofdm/tunnel.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-examples/python/ofdm/tunnel.py b/gnuradio-examples/python/ofdm/tunnel.py
index 952c8dc95..74f0f04d7 100755
--- a/gnuradio-examples/python/ofdm/tunnel.py
+++ b/gnuradio-examples/python/ofdm/tunnel.py
@@ -278,7 +278,7 @@ class cs_mac(object):
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 @@ class cs_mac(object):
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 @@ class cs_mac(object):
if delay < 0.050:
delay = delay * 2 # exponential back-off
- self.tb.send_pkt(payload)
+ self.tb.txpath.send_pkt(payload)
# /////////////////////////////////////////////////////////////////////////////