]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mxc6225xu/pd.py
decoders: Fix incorrect 'outputs' fields.
[libsigrokdecode.git] / decoders / mxc6225xu / pd.py
index 39e73f7f1c70cfe6bd75e1fa4c01800d4ece2544..e9617782d6154471c48c937b7a0ede40dc84073c 100644 (file)
@@ -59,19 +59,23 @@ status = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'mxc6225xu'
     name = 'MXC6225XU'
     longname = 'MEMSIC MXC6225XU'
     desc = 'Digital Thermal Orientation Sensor (DTOS) protocol.'
     license = 'gplv2+'
     inputs = ['i2c']
-    outputs = ['mxc6225xu']
+    outputs = []
+    tags = ['IC', 'Sensor']
     annotations = (
         ('text', 'Human-readable text'),
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.state = 'IDLE'
 
     def start(self):