diff options
author | Nao Pross <np@0hm.ch> | 2021-11-22 19:59:14 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-11-22 19:59:14 +0100 |
commit | ec407f3bf29eca3271b428859b258b43222265c9 (patch) | |
tree | a62e18c762a256b2771029c5732d92cfdcda32f7 /src/gr-fadingui/python/datasource.py | |
parent | Make install.sh run QA (diff) | |
download | Fading-ec407f3bf29eca3271b428859b258b43222265c9.tar.gz Fading-ec407f3bf29eca3271b428859b258b43222265c9.zip |
Implement frame synchronization
There is an issue somewhere between the mod and demod, since frame
synchronization works on a direct path.
Diffstat (limited to 'src/gr-fadingui/python/datasource.py')
-rw-r--r-- | src/gr-fadingui/python/datasource.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |