]> 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 01563c28a17b4a0dfe8eb749beddd43a4efd6e82..dfe9abe4e0a0d78a0fc4e03ccabc64a1f3ab0eee 100644 (file)
@@ -29,14 +29,11 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['nunchuck']
-    probes = []
-    optional_probes = []
-    options = {}
-    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'
@@ -46,7 +43,7 @@ class Decoder(srd.Decoder):
         self.init_seq = []
 
     def start(self):
-        # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+        # self.out_python = self.register(srd.OUTPUT_PYTHON)
         self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def putx(self, data):