diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-07-30 17:03:39 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-07-30 17:06:58 +0200 |
commit | bb5af7af06b8fb1b37a88a03a94db3e35a7d15de (patch) | |
tree | 7f71f4d3907a5e2078a20eb549d4ad405a1c3bec /util.c | |
parent | e6962b3fe8260382bb9932a1cfdd7ee7090ce267 (diff) | |
download | libsigrokdecode-bb5af7af06b8fb1b37a88a03a94db3e35a7d15de.tar.gz libsigrokdecode-bb5af7af06b8fb1b37a88a03a94db3e35a7d15de.zip |
rgb_led_spi: adjust decoder implementation's Python style
Eliminate unneeded instance variables. Start from None when values are
unknown. Only access data after checking its availability. Invalidate
previously accumulated details after processing. Prefer .format() over
string modulo. Use list .clear() where applicable. Use symbolic names
for annotation classes.
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions