]> sigrok.org Git - libsigrokdecode.git/commit
sdq: simplify decode routine, no state machine required
authorGerhard Sittig <redacted>
Wed, 12 Aug 2020 16:47:37 +0000 (18:47 +0200)
committerGerhard Sittig <redacted>
Wed, 12 Aug 2020 17:57:13 +0000 (19:57 +0200)
commitb6975c680c337bce650eb785d3dad96c282726b6
tree7773d20e9d7175d5ad6929bb4b59b82201b4efee
parentd7c2340885909a619acfe590201f71faefae7843
sdq: simplify decode routine, no state machine required

Move the initial synchronization to the input data out of the main loop,
and handle the BREAK symbol when it was seen. Turns out that no state
machine is required to decode the SDQ protocol.

[ best viewed as a whitespace ignoring diff ]
decoders/sdq/pd.py