]> sigrok.org Git - libsigrokdecode.git/commit
uart: skip frames with invalid start bits
authorGerhard Sittig <redacted>
Sun, 16 Oct 2016 16:26:18 +0000 (18:26 +0200)
committerUwe Hermann <redacted>
Wed, 19 Oct 2016 20:36:49 +0000 (22:36 +0200)
commit711d0602317e28ddc123ab540036b37979df70c4
tree73839fd6e16a6f5b48424f310bd6d9707fc2ffbf
parent6ffd71c169f0562134b5e7548ea0a36f93604d86
uart: skip frames with invalid start bits

When the start bit is not low at its sample point, then stop trying
to interpret the remaining frame -- it's already known to be invalid,
anyway.

Wait for the next start bit instead, assuming that either the falling
edge which started the inspection of the UART frame and its start bit
was a spurious glitch or that the captured signal does not communicate
at the decoder's configured bitrate.

Signed-off-by: Gerhard Sittig <redacted>
decoders/uart/pd.py