diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-11-07 12:39:08 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-11-09 07:59:14 -0500 |
commit | 55621a9709b219551b908e67ee88f6f7ad2593cb (patch) | |
tree | 18f742e7af01bb4bfed4918a36865fa88c0a9d1b /gr-analog/python/analog/wfm_tx.py | |
parent | 269fd060c56cbb01665a4ce9270ce4e67e56b70f (diff) |
analog: WFM tools: proper integer div, decimation handling
Diffstat (limited to 'gr-analog/python/analog/wfm_tx.py')
-rw-r--r-- | gr-analog/python/analog/wfm_tx.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-analog/python/analog/wfm_tx.py b/gr-analog/python/analog/wfm_tx.py index 5de90747cc..11f90ae545 100644 --- a/gr-analog/python/analog/wfm_tx.py +++ b/gr-analog/python/analog/wfm_tx.py @@ -1,5 +1,5 @@ # -# Copyright 2005,2007,2012 Free Software Foundation, Inc. +# Copyright 2005,2007,2012,2020 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -49,7 +49,7 @@ class wfm_tx(gr.hier_block2): do_interp = audio_rate != quad_rate if do_interp: - interp_factor = quad_rate / audio_rate + interp_factor = quad_rate // audio_rate interp_taps = filter.optfir.low_pass(interp_factor, # gain quad_rate, # Fs 16000, # passband cutoff |