]> sigrok.org Git - libsigrokdecode.git/commit
rgb_led_ws281x: rephrase .put() calls for readability
authorGerhard Sittig <redacted>
Fri, 28 Jul 2023 05:40:14 +0000 (07:40 +0200)
committerGerhard Sittig <redacted>
Sat, 29 Jul 2023 19:29:07 +0000 (21:29 +0200)
commit192a9e78f97ea82f7ee69a683b4639847cbf4e5a
treec8ee7903c246dd9547bd2f64c3f15e80c9356821
parent0e3c34984c1251da0a1cb90afac1ed000d72e5e0
rgb_led_ws281x: rephrase .put() calls for readability

Separate the construction of the list of texts for different zoom levels
from the emission of annotations. Use a .putg() helpers to match other
decoder implementations. Prefer .format() calls over "modulo" operations
on strings.
decoders/rgb_led_ws281x/pd.py