summaryrefslogtreecommitdiff
path: root/decoders/parallel
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2014-03-10 12:23:38 +0100
committerBert Vermeulen <bert@biot.com>2014-03-10 12:23:38 +0100
commitda9bcbd9f45b0153465c55ec726a0d76f6d7f01e (patch)
tree01190e6a1e52a3aedf5b2578716b8a470cd50fd0 /decoders/parallel
parentd1e2129c7b01a760d48bcc8e7fc12956a62698c1 (diff)
downloadlibsigrokdecode-da9bcbd9f45b0153465c55ec726a0d76f6d7f01e.tar.gz
libsigrokdecode-da9bcbd9f45b0153465c55ec726a0d76f6d7f01e.zip
Probes, optional probes and annotations now take a tuple.
Annotation entries also consist of a tuple, not a list.
Diffstat (limited to 'decoders/parallel')
-rw-r--r--decoders/parallel/pd.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py
index 43c5d54..cae269f 100644
--- a/decoders/parallel/pd.py
+++ b/decoders/parallel/pd.py
@@ -59,7 +59,7 @@ def probe_list(num_probes):
for i in range(num_probes):
d = {'id': 'd%d' % i, 'name': 'D%d' % i, 'desc': 'Data line %d' % i}
l.append(d)
- return l
+ return tuple(l)
class Decoder(srd.Decoder):
api_version = 1
@@ -79,10 +79,10 @@ class Decoder(srd.Decoder):
{'id': 'endianness', 'desc': 'Endianness of the data',
'default': 'little', 'values': ('little', 'big')},
)
- annotations = [
- ['items', 'Items'],
- ['words', 'Words'],
- ]
+ annotations = (
+ ('items', 'Items'),
+ ('words', 'Words'),
+ )
def __init__(self):
self.oldclk = None