summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Jameson2013-02-11 20:18:06 +0000
committerMike Jameson2013-02-11 20:18:06 +0000
commit48f0d2c9ec3207e839bb91d1f6be1fd091cb1913 (patch)
treeb2071b8a269c8d03144aabb4c1eaf4ded34b315a
parent1ec148d3a84314d807103bd7b8ab70d4d977e528 (diff)
downloadgnuradio-48f0d2c9ec3207e839bb91d1f6be1fd091cb1913.tar.gz
gnuradio-48f0d2c9ec3207e839bb91d1f6be1fd091cb1913.tar.bz2
gnuradio-48f0d2c9ec3207e839bb91d1f6be1fd091cb1913.zip
uhd: fixed default midpoint gain
-rwxr-xr-xgr-uhd/examples/python/usrp_am_mw_rcv.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/gr-uhd/examples/python/usrp_am_mw_rcv.py b/gr-uhd/examples/python/usrp_am_mw_rcv.py
index 9d359a4cf..02863b32f 100755
--- a/gr-uhd/examples/python/usrp_am_mw_rcv.py
+++ b/gr-uhd/examples/python/usrp_am_mw_rcv.py
@@ -20,8 +20,6 @@
# Boston, MA 02110-1301, USA.
#
-#FIX gain
-
from gnuradio import gr, eng_notation, optfir
from gnuradio import audio
from gnuradio import uhd
@@ -140,10 +138,8 @@ class wfm_rx_block (stdgui2.std_top_block):
if options.gain is None:
g = self.u.get_gain_range()
- if True:
- # if no gain was specified, use the mid gain
- options.gain = (g.start() + g.stop())/2.0
- options.gain = g.stop()
+ # if no gain was specified, use the mid gain
+ options.gain = (g.start() + g.stop())/2.0
if options.volume is None:
v = self.volume_range()