summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband/receive_path.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/examples/narrowband/receive_path.py')
-rw-r--r--gr-digital/examples/narrowband/receive_path.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-digital/examples/narrowband/receive_path.py b/gr-digital/examples/narrowband/receive_path.py
index 308f955645..a1a07b5f26 100644
--- a/gr-digital/examples/narrowband/receive_path.py
+++ b/gr-digital/examples/narrowband/receive_path.py
@@ -23,6 +23,7 @@
from gnuradio import gr, gru, filter
from gnuradio import eng_notation
from gnuradio import digital
+from gnuradio import analog
import copy
import sys
@@ -78,7 +79,7 @@ class receive_path(gr.hier_block2):
# Carrier Sensing Blocks
alpha = 0.001
thresh = 30 # in dB, will have to adjust
- self.probe = gr.probe_avg_mag_sqrd_c(thresh,alpha)
+ self.probe = analog.probe_avg_mag_sqrd_c(thresh,alpha)
# Display some information about the setup
if self._verbose: