]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/parallel/pd.py
Probes, optional probes and annotations now take a tuple.
[libsigrokdecode.git] / decoders / parallel / pd.py
index 43c5d54709292c9153b403b21624dc6fec7d8684..cae269f8d524c5bf403164f8ac0e048ee28edf34 100644 (file)
@@ -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