]> sigrok.org Git - libsigrokdecode.git/commit
ir_nec: rephrase annotation logic, symbolic names, format() call
authorGerhard Sittig <redacted>
Sat, 25 Jul 2020 15:48:07 +0000 (17:48 +0200)
committerGerhard Sittig <redacted>
Sat, 25 Jul 2020 21:13:05 +0000 (23:13 +0200)
commit34ed4b3fb179f4ff7972879534a7395c90fe8d84
tree71875d2e74d82d02fc9c5ed8d6565f40ef03a054
parent32d1c3503d2c5402140c31fab37438861e0d7cb3
ir_nec: rephrase annotation logic, symbolic names, format() call

Eliminate magic numbers, use symbolic names for annotation classes and
pin numbers. Also vertically align text variants for zoom levels in the
more complex cases, to simplify maintenance. Prefer .format() calls to
improve readability in the more complex invocations.
decoders/ir_nec/pd.py