summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2024-01-08 11:06:06 +0100
committerJeff Long <willcode4@gmail.com>2024-01-08 12:13:33 -0500
commitc75211d614771d0c0dd63c5f282fd3a5d7c8ac22 (patch)
tree0f72081ba43dfd76f880efe8b162f84ad10be327
parentfec: Fix BPSK AWGN formula (diff)
downloadgnuradio-c75211d614771d0c0dd63c5f282fd3a5d7c8ac22.tar.xz
gnuradio-c75211d614771d0c0dd63c5f282fd3a5d7c8ac22.zip
grc: Fix compilation of bus ports
This removes a superfluous call to Connection.__init__() in the top block generator which uses itself as a parent, instead of the original flowgraph as elsewhere in the same file. 0fd504e5 changed the Connection object such that passing in a parent that is not an Element is no longer valid. Signed-off-by: Martin Braun <martin.braun@ettus.com> (cherry picked from commit 2d5f73e7d188679e92d81e77ea9004237be57cc7) Signed-off-by: Jeff Long <willcode4@gmail.com>
-rw-r--r--grc/core/generator/top_block.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/grc/core/generator/top_block.py b/grc/core/generator/top_block.py
index 15f8c82b9..ff145c0da 100644
--- a/grc/core/generator/top_block.py
+++ b/grc/core/generator/top_block.py
@@ -336,7 +336,6 @@ class TopBlockGenerator(object):
# the code for each subconnection
porta = con.source_port
portb = con.sink_port
- fg = self._flow_graph
if porta.dtype == 'bus' and portb.dtype == 'bus':
# which bus port is this relative to the bus structure
@@ -344,8 +343,6 @@ class TopBlockGenerator(object):
for port_num_a, port_num_b in zip(porta.bus_structure, portb.bus_structure):
hidden_porta = porta.parent.sources[port_num_a]
hidden_portb = portb.parent.sinks[port_num_b]
- connection = fg.parent_platform.Connection(
- parent=self, source=hidden_porta, sink=hidden_portb)
code = template.render(
make_port_sig=make_port_sig,
source=hidden_porta,