diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-17 09:17:02 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-17 17:14:14 +0200 |
commit | f138ba194e11d517d7b2c8a4a7861f71a8773128 (patch) | |
tree | ad83cbf1ed152bd96b27c653f4ce2114ae3788e5 /decoders/jitter | |
parent | 303f43e74aee56f64318be7b0507d0f7a70c1897 (diff) | |
download | libsigrokdecode-f138ba194e11d517d7b2c8a4a7861f71a8773128.tar.gz libsigrokdecode-f138ba194e11d517d7b2c8a4a7861f71a8773128.zip |
pjdl: support PAD bit adjacent to last HIGH DATA bit (no LOW)
The PJDL decoder's previous implementation was incomplete. It assumed
that PAD bits always start with a rising edge. Which made the decoder
miss the next byte when a previous byte's MSB is set, and the last DATA
bit and the next PAD bit kept the signal HIGH between them (no LOW phase
was seen between these symbols).
Keep the check for the LOW level after the byte's last DATA bit within
the bit times' tolerance. But accept when the level remains HIGH, and
check for the HIGH bit's width starting from the end of the last DATA
bit. Also start the PAD bit's annotation from that "virtual" edge.
This patch is based on a fix that was
Submitted-By: Julio Aguirre <jcallano@gmail.com>
Diffstat (limited to 'decoders/jitter')
0 files changed, 0 insertions, 0 deletions