summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/ofdm
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-examples/python/ofdm')
-rwxr-xr-xgnuradio-examples/python/ofdm/benchmark_ofdm_tx.py2
-rwxr-xr-xgnuradio-examples/python/ofdm/tunnel.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-examples/python/ofdm/benchmark_ofdm_tx.py b/gnuradio-examples/python/ofdm/benchmark_ofdm_tx.py
index fb41ab129..918ff0842 100755
--- a/gnuradio-examples/python/ofdm/benchmark_ofdm_tx.py
+++ b/gnuradio-examples/python/ofdm/benchmark_ofdm_tx.py
@@ -98,7 +98,7 @@ class my_top_block(gr.top_block):
the result of that operation and our target_frequency to
determine the value for the digital up converter.
"""
- r = self.u.tune(self.subdev._which, self.subdev, target_freq)
+ r = self.u.tune(self.subdev.which(), self.subdev, target_freq)
if r:
return True
diff --git a/gnuradio-examples/python/ofdm/tunnel.py b/gnuradio-examples/python/ofdm/tunnel.py
index 74f0f04d7..7e75c3ee8 100755
--- a/gnuradio-examples/python/ofdm/tunnel.py
+++ b/gnuradio-examples/python/ofdm/tunnel.py
@@ -182,8 +182,8 @@ class usrp_graph(gr.top_block):
the result of that operation and our target_frequency to
determine the value for the digital up converter.
"""
- r_snk = self.u_snk.tune(self.subdev._which, self.subdev, target_freq)
- r_src = self.u_src.tune(self.subdev._which, self.subdev, target_freq)
+ r_snk = self.u_snk.tune(self.subdev.which(), self.subdev, target_freq)
+ r_src = self.u_src.tune(self.subdev.which(), self.subdev, target_freq)
if r_snk and r_src:
return True