summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/examples/python/usrp_tv_rcv_nogui.py')
-rwxr-xr-xgr-uhd/examples/python/usrp_tv_rcv_nogui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-uhd/examples/python/usrp_tv_rcv_nogui.py b/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
index dfa6ceec1f..5eef4a00f6 100755
--- a/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
+++ b/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
@@ -161,7 +161,7 @@ class my_top_block(gr.top_block):
self.agc = analog.agc_cc(1e-7,1.0,1.0) #1e-7
- self.am_demod = gr.complex_to_mag ()
+ self.am_demod = blocks.complex_to_mag ()
self.set_blacklevel = blocks.add_const_ff(options.brightness +255.0)
self.invert_and_scale = blocks.multiply_const_ff(-options.contrast *128.0*255.0/(200.0))
self.f2uc = blocks.float_to_uchar()