From 5d0361d208072574e1a3a200fca07c0b334f16d0 Mon Sep 17 00:00:00 2001 From: Marc L Date: Wed, 19 Jan 2022 18:56:30 -0500 Subject: [PATCH] workaround for get_tags_in_window bug in GR 3.8.2 and 3.8.3 Workaround for nasty bug fixed in https://github.com/gnuradio/gnuradio/pull/5166/files it was backported to maint-3.9 but there might be folks with 3.9.2 or 3.9.3 that don't have the backport --- python/demod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/demod.py b/python/demod.py index 086caf0..7f0a0eb 100644 --- a/python/demod.py +++ b/python/demod.py @@ -64,7 +64,7 @@ def work(self, input_items, output_items): self.straddled_packet = 0 # Get tags from ADS-B Framer block - tags = self.get_tags_in_window(0, 0, len(in0), pmt.to_pmt("burst")) + tags = self.get_tags_in_range(0, self.nitems_read(0), self.nitems_read(0) + len(in0), pmt.to_pmt("burst")) for tag in tags: # Grab metadata for this tag