summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_rx_nogui
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/apps/uhd_rx_nogui')
-rwxr-xr-xgr-uhd/apps/uhd_rx_nogui9
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-uhd/apps/uhd_rx_nogui b/gr-uhd/apps/uhd_rx_nogui
index 9977f55a3c..cb6238353e 100755
--- a/gr-uhd/apps/uhd_rx_nogui
+++ b/gr-uhd/apps/uhd_rx_nogui
@@ -21,6 +21,7 @@
#
from gnuradio import gr, gru, uhd, optfir, audio, blks2
+from gnuradio import analog
from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
@@ -159,10 +160,10 @@ class app_top_block(gr.top_block):
int(channel_rate/20), # 50ms rise/fall
False) # Zero, not gate output
- AGC = gr.agc_cc(1.0/channel_rate, # Time constant
- 1.0, # Reference power
- 1.0, # Initial gain
- 1.0) # Maximum gain
+ AGC = analog.agc_cc(1.0/channel_rate, # Time constant
+ 1.0, # Reference power
+ 1.0, # Initial gain
+ 1.0) # Maximum gain
DEMOD = demod(channel_rate, audio_decim)