diff options
Diffstat (limited to 'gnuradio-examples/python/hier/digital/receive_path_lb.py')
-rw-r--r-- | gnuradio-examples/python/hier/digital/receive_path_lb.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gnuradio-examples/python/hier/digital/receive_path_lb.py b/gnuradio-examples/python/hier/digital/receive_path_lb.py index fada441ffc..69d721df30 100644 --- a/gnuradio-examples/python/hier/digital/receive_path_lb.py +++ b/gnuradio-examples/python/hier/digital/receive_path_lb.py @@ -71,17 +71,13 @@ class receive_path(gr.hier_block2): if self._verbose: self._print_verbage() - # Define the components - self.define_component("channel_filter", gr.fft_filter_ccc(sw_decim, chan_coeffs)) - self.define_component("channel_probe", self.probe) - self.define_component("packet_receiver", self.packet_receiver) + self.channel_filter = gr.fft_filter_ccc(sw_decim, chan_coeffs) # connect the channel input filter to the carrier power detector - self.connect("self", 0, "channel_filter", 0) - self.connect("channel_filter", 0, "channel_probe", 0) + self.connect(self, self.channel_filter, self.probe) # connect channel filter to the packet receiver - self.connect("channel_filter", 0, "packet_receiver", 0) + self.connect(self.channel_filter, self.packet_receiver) def bitrate(self): return self._bitrate |