diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-25 17:55:26 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-25 23:18:21 +0200 |
commit | 025c728ed12e33121fb5be4ce14085afc2f23853 (patch) | |
tree | 3f01295a908847d2d339b2c1794377209ab3e0d7 /decoders/adxl345 | |
parent | d478372a132d1872426f96f5f0d06119392805f7 (diff) | |
download | libsigrokdecode-025c728ed12e33121fb5be4ce14085afc2f23853.tar.gz libsigrokdecode-025c728ed12e33121fb5be4ce14085afc2f23853.zip |
ir_nec: use common helper for bit accumulation
The input signal's polarity ('active' variable) is strictly local to the
decode() method. The 'count' becomes obsolete when 'data' is kept in a
Python list. Conversion of bit patterns to numbers is provided by common
helpers. Alpha-sort Python imports while we are here.
This commit also renames a few variables in the normal/inverted check
for valid input data. Which can help the introduction of support for the
extended protocol, by decoupling what gets checked and what gets shown.
Diffstat (limited to 'decoders/adxl345')
0 files changed, 0 insertions, 0 deletions