]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mlx90614/pd.py
Probes, optional probes and annotations now take a tuple.
[libsigrokdecode.git] / decoders / mlx90614 / pd.py
index 1e6c33d0c8c0f5b40fd2cfb2d3109a7d05754c40..fec3334fd81149450943580a1be9e8b52dc87d6a 100644 (file)
@@ -29,20 +29,17 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['mlx90614']
-    probes = []
-    optional_probes = []
-    options = {}
-    annotations = [
-        ['Celsius', 'Temperature in degrees Celsius'],
-        ['Kelvin', 'Temperature in Kelvin'],
-    ]
+    annotations = (
+        ('celsius', 'Temperature in degrees Celsius'),
+        ('kelvin', 'Temperature in Kelvin'),
+    )
 
     def __init__(self, **kwargs):
         self.state = 'IGNORE START REPEAT'
         self.data = []
 
     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):