]> sigrok.org Git - libsigrokdecode.git/commitdiff
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)
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.


No differences found