]> sigrok.org Git - libsigrokdecode.git/commit
parallel: cope with sparse input mappings, assume zero for not-connected pins
authorGerhard Sittig <redacted>
Fri, 22 Dec 2017 13:48:37 +0000 (14:48 +0100)
committerUwe Hermann <redacted>
Mon, 1 Jan 2018 21:15:51 +0000 (22:15 +0100)
commita0b7e07f5576605141e543f9d81a220a920edc27
treea1a73576180cd3398ca886645819030834f145cd
parent6f7dd46d60a7ca2f1893f5a7d5fd7e87212743f7
parallel: cope with sparse input mappings, assume zero for not-connected pins

Cope when users only provide e.g. input lines D0 and D2 to the parallel
decoder. Assume that not-connected pins are "always zero".

Rephrase the .decode() logic which determines .wait() conditions while
we are here, to slightly unobfuscate the implementation.

This fixes bug #1088.
decoders/parallel/pd.py