summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/hier/dect/usrp_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-examples/python/hier/dect/usrp_source.py')
-rw-r--r--gnuradio-examples/python/hier/dect/usrp_source.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnuradio-examples/python/hier/dect/usrp_source.py b/gnuradio-examples/python/hier/dect/usrp_source.py
index 16949998b8..9226f92060 100644
--- a/gnuradio-examples/python/hier/dect/usrp_source.py
+++ b/gnuradio-examples/python/hier/dect/usrp_source.py
@@ -47,9 +47,7 @@ class usrp_source_c(gr.hier_block2):
self.set_gain(gain)
self.set_calibration(calibration)
self.tune(freq)
-
- self.define_component("usrp", self._u)
- self.connect("usrp", 0, "self", 0)
+ self.connect(self._u, self)
def set_subdev(self, subdev_spec):
if subdev_spec is None: