]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mlx90614/pd.py
decoders: Add/update tags for each PD.
[libsigrokdecode.git] / decoders / mlx90614 / pd.py
index c2b37c7bcf9c33a4688c3bac2d85ad13d3a0168a..8ae3ab90fa0179cbbfb861b988b090baa05a7f58 100644 (file)
@@ -20,7 +20,7 @@
 import sigrokdecode as srd
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'mlx90614'
     name = 'MLX90614'
     longname = 'Melexis MLX90614'
@@ -28,12 +28,16 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['mlx90614']
+    tags = ['IC', 'Sensor']
     annotations = (
         ('celsius', 'Temperature in degrees Celsius'),
         ('kelvin', 'Temperature in Kelvin'),
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.state = 'IGNORE START REPEAT'
         self.data = []