]> sigrok.org Git - libsigrokdecode.git/commit
i2c: rename variables and adjust data types for readability
authorGerhard Sittig <redacted>
Fri, 14 Jul 2023 15:18:30 +0000 (17:18 +0200)
committerGerhard Sittig <redacted>
Tue, 18 Jul 2023 19:09:40 +0000 (21:09 +0200)
commit14ba515be7d292a7c4e0f623d83b6631203cf1e8
tree3e86331219f3c232bc8179a30e9816023ddca39f
parentd7da8b9ea27ba271857d265b8ee66b40ae7079fc
i2c: rename variables and adjust data types for readability

Use longer names for variables and adjust their data types to improve
readability of the "is write?", "is repeated start?" conditions. Use a
boolean when the condition is known, and preset to None when the state
is yet uncertain. Rename .bits[] to .data_bits[] to reflect that they
exclusively hold the byte's bits and not the ACK/NAK bit.
decoders/i2c/pd.py