diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2019-11-24 09:52:42 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2019-11-24 20:41:54 +0100 |
commit | 1cb40e1077894db4c92cfa01b285e28b202cce6f (patch) | |
tree | 9322b633d4c97ca51672dc44f440350a0f0b6aa2 /decoders/wiegand/pd.py | |
parent | 3f6cc6ddd99b790c9d527a64b41055f57501e414 (diff) | |
download | libsigrokdecode-1cb40e1077894db4c92cfa01b285e28b202cce6f.tar.gz libsigrokdecode-1cb40e1077894db4c92cfa01b285e28b202cce6f.zip |
decoder: internal 'always false' term, handle invalid skip and channel
Introduce an "always false" type for .wait() terms. Map invalid counts
of skip conditions (zero or negative numbers) as well as invalid channel
references for level/edge conditions to this type which never matches.
Keep this "always false" term type an internal detail of the common
support code.
This is most robust and least intrusive at the same time, it keeps the
existing API, and simplifies the implementation of Python decoders for
rare edge cases (optional input signals or optional features, handling
of initial samples at the very start of a capture).
This commit passes sample counts internally in a signed data type. This
is essential for proper operation, and the loss of one bit out of 64
shall not be considered a severe limitation.
This fixes bug #1444.
Diffstat (limited to 'decoders/wiegand/pd.py')
0 files changed, 0 insertions, 0 deletions