]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk/pd.py
Probes, optional probes and annotations now take a tuple.
[libsigrokdecode.git] / decoders / nunchuk / pd.py
index 5fd01d2c9f81b18f5f3609d87a772772c0c73df7..dfe9abe4e0a0d78a0fc4e03ccabc64a1f3ab0eee 100644 (file)
@@ -29,11 +29,11 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['nunchuck']
-    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.state = 'IDLE'