summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital
diff options
context:
space:
mode:
authorJeff Long <willcode4@gmail.com>2021-07-25 19:00:10 -0400
committerMartin Braun <martin@gnuradio.org>2021-07-27 01:08:29 -0700
commit11255ca436e6e3eff56fcc995e1b72cff289c90b (patch)
tree2bd67673a8b7722286ef6e62db60e9960f766c9c /gr-digital/python/digital
parentc734619fbe40b0c53fce0a0d9b04db681a344d62 (diff)
digital: add int() cast where required
Skiphead requires an integer number of samples, but was being called with a float parameter. Signed-off-by: Jeff Long <willcode4@gmail.com>
Diffstat (limited to 'gr-digital/python/digital')
-rw-r--r--gr-digital/python/digital/generic_mod_demod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-digital/python/digital/generic_mod_demod.py b/gr-digital/python/digital/generic_mod_demod.py
index 73024ad9ad..a40a7fda5f 100644
--- a/gr-digital/python/digital/generic_mod_demod.py
+++ b/gr-digital/python/digital/generic_mod_demod.py
@@ -135,7 +135,7 @@ class generic_mod(gr.hier_block2):
# Remove the filter transient at the beginning of the transmission
if truncate:
fsps = float(self._samples_per_symbol)
- len_filt_delay = (ntaps_per_filt*fsps*fsps-fsps)/2.0 # Length of delay through rrc filter
+ len_filt_delay = int((ntaps_per_filt*fsps*fsps-fsps)/2.0) # Length of delay through rrc filter
self.skiphead = blocks.skiphead(gr.sizeof_gr_complex*1, len_filt_delay)
# Connect