summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/usrp_wfm_rcv_nogui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/examples/usrp_wfm_rcv_nogui.py')
-rwxr-xr-xgr-uhd/examples/usrp_wfm_rcv_nogui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-uhd/examples/usrp_wfm_rcv_nogui.py b/gr-uhd/examples/usrp_wfm_rcv_nogui.py
index d8fb055cb..ffeda4493 100755
--- a/gr-uhd/examples/usrp_wfm_rcv_nogui.py
+++ b/gr-uhd/examples/usrp_wfm_rcv_nogui.py
@@ -100,7 +100,7 @@ class wfm_rx_block (gr.top_block):
if options.gain is None:
# if no gain was specified, use the mid-point in dB
g = self.u.get_gain_range()
- options.gain = float(g.start()+g.stop())/2
+ options.gain = float(g.start()+g.stop())/2.0
if options.volume is None:
g = self.volume_range()