diff options
author | trondeau | 2008-01-14 14:06:01 +0000 |
---|---|---|
committer | trondeau | 2008-01-14 14:06:01 +0000 |
commit | c134910514da25ea27142022c90fe384395668e4 (patch) | |
tree | 9460d2cf9514cafdf1ec717eb446a10a7987232c | |
parent | 4022e568aa33f223df17b869af80f5c6565df286 (diff) | |
download | gnuradio-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
-rwxr-xr-x | gnuradio-examples/python/ofdm/tunnel.py | 6 |
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) # ///////////////////////////////////////////////////////////////////////////// |