summaryrefslogtreecommitdiff
path: root/decoders/signature/pd.py
AgeCommit message (Collapse)Author
2019-12-12signature: increase compatibility across Python versionsGerhard Sittig
Underscores in number literals are a recent Python feature which only was introduced in version 3.6. The sigrok project claims compatibility with previous Python versions, but the signature decoder fails to load with this error: $ pulseview srd: SyntaxError: Failed to load decoder signature: import by name failed: invalid syntax (pd.py, line 138) srd: Traceback (most recent call last): File "/home/user/share/libsigrokdecode/decoders/signature/__init__.py", line 25, in <module> from .pd import Decoder File "/home/user/share/libsigrokdecode/decoders/signature/pd.py", line 138 incoming = (bin(shiftreg & 0b0000_0010_1001_0001).count('1') + data) & 1 ^ SyntaxError: invalid syntax Use the more compact hex presentation for a magic binary pattern. This obsoletes the necessity to separate groups of bits for readability.
2019-11-28signature: Fix license metadata field to match pd.py license header.Uwe Hermann
2019-11-28signature: Use more human-readable option values.Uwe Hermann
2019-11-28signature: Minor consistency fixes.Uwe Hermann
2019-11-28signature: Add self.reset().Uwe Hermann
2019-11-28Add decoder: signature analysissharow