From 11255ca436e6e3eff56fcc995e1b72cff289c90b Mon Sep 17 00:00:00 2001
From: Jeff Long <willcode4@gmail.com>
Date: Sun, 25 Jul 2021 19:00:10 -0400
Subject: 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>
---
 gr-digital/python/digital/generic_mod_demod.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-digital/python/digital')

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
-- 
cgit v1.2.3