From ec407f3bf29eca3271b428859b258b43222265c9 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 22 Nov 2021 19:59:14 +0100 Subject: Implement frame synchronization There is an issue somewhere between the mod and demod, since frame synchronization works on a direct path. --- src/gr-fadingui/python/datasource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gr-fadingui/python/datasource.py') diff --git a/src/gr-fadingui/python/datasource.py b/src/gr-fadingui/python/datasource.py index 12573a8..38771c5 100644 --- a/src/gr-fadingui/python/datasource.py +++ b/src/gr-fadingui/python/datasource.py @@ -35,7 +35,7 @@ class datasource(gr.basic_block): # a frame has 5 id bits so, there can only be 2 ** 5 chunks per file # see docstring of frame_obj for more details nblocks = int(self.fsize / self.frame.payload_length) - log.debug(f"Loaded {self.fsize} bytes = {nblocks} blocks from {self.fname}") + log.debug(f"Loaded {self.fsize} bytes == {nblocks} blocks from {self.fname}") assert nblocks < 2 ** 5, "Payload size too small or file too big" self.fpos = 0 @@ -73,7 +73,7 @@ class datasource(gr.basic_block): self.outbuffer = frame_bytes[len(out):] log.debug(f"Sent frame nr={self.blocknr}") - log.debug(f"Set bytes {out}") + log.debug(f"Sent bytes {out}") self.fpos += self.frame.payload_length self.blocknr += 1 -- cgit v1.2.1