commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r4180 - gnuradio/branches/developers/n4hy/ofdm/gnuradi


From: n4hy
Subject: [Commit-gnuradio] r4180 - gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/python/gnuradio/blksimpl
Date: Wed, 20 Dec 2006 20:12:28 -0700 (MST)

Author: n4hy
Date: 2006-12-20 20:12:28 -0700 (Wed, 20 Dec 2006)
New Revision: 4180

Modified:
   
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/python/gnuradio/blksimpl/ofdm_pkt.py
Log:
updated MTU input

Modified: 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/python/gnuradio/blksimpl/ofdm_pkt.py
===================================================================
--- 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/python/gnuradio/blksimpl/ofdm_pkt.py
       2006-12-21 03:12:14 UTC (rev 4179)
+++ 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/python/gnuradio/blksimpl/ofdm_pkt.py
       2006-12-21 03:12:28 UTC (rev 4180)
@@ -36,7 +36,7 @@
 
     Send packets by calling send_pkt
     """
-    def __init__(self, fg, modulator, mtu=1500, access_code=None, 
msgq_limit=2, pad_for_usrp=True):
+    def __init__(self, fg, modulator, access_code=None, msgq_limit=2, 
pad_for_usrp=True):
         """
        Hierarchical block for sending packets
 
@@ -55,7 +55,6 @@
 
         See modulators for remaining parameters
         """
-        self.mtu = mtu
         self._modulator = modulator
         self._pad_for_usrp = pad_for_usrp
 
@@ -66,7 +65,7 @@
         self._access_code = access_code
 
         # accepts messages from the outside world
-        self._pkt_input = gr.message_vector_source(self.mtu, msgq_limit)
+        self._pkt_input = gr.message_vector_source(self._modulator.mtu(), 
msgq_limit)
         fg.connect(self._pkt_input, self._modulator)
         gr.hier_block.__init__(self, fg, None, self._modulator)
 





reply via email to

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