]> sigrok.org Git - libsigrokdecode.git/commit
i2cfilter: rephrase decoder implementation for maintainability
authorGerhard Sittig <redacted>
Fri, 14 Jul 2023 05:40:03 +0000 (07:40 +0200)
committerGerhard Sittig <redacted>
Tue, 18 Jul 2023 19:09:40 +0000 (21:09 +0200)
commitbb6f9c500e4119aa9558dfc66ba82bf7ef3772c5
treeddc79a87e934c51820f994bff0ab658db3c50534
parent4f139c2887542954b7bea19ef22495033ea59261
i2cfilter: rephrase decoder implementation for maintainability

The previous implementation suffered from a severe issue (it kept
referencing caller's data beyond its validity) and from style issues
(redundant details, conditions scattered across distant locations).

Rephrase (actually rework) the decoder implementation to improve
readability as well as maintainability. Extend the TODO list while
the existing logic better lends itself to future extensions. Reword
comments while we are here. Some earlier constraints no longer apply
or were unfortunately phrased.
decoders/i2cfilter/pd.py