]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/pan1321/pd.py
Probes, optional probes and annotations now take a tuple.
[libsigrokdecode.git] / decoders / pan1321 / pd.py
index e7ccd60378070035e57d76337034a8cd1814ddb8..9278ba09ad2cc2e38be1595cb1f7b1646df60eff 100644 (file)
@@ -33,11 +33,11 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['uart']
     outputs = ['pan1321']
-    annotations = [
-        ['text-verbose', 'Human-readable text (verbose)'],
-        ['text', 'Human-readable text'],
-        ['warnings', 'Human-readable warnings'],
-    ]
+    annotations = (
+        ('text-verbose', 'Human-readable text (verbose)'),
+        ('text', 'Human-readable text'),
+        ('warnings', 'Human-readable warnings'),
+    )
 
     def __init__(self, **kwargs):
         self.cmd = ['', '']