]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mxc6225xu/pd.py
rfm12: Avoid using the Python 'range' keyword as variable.
[libsigrokdecode.git] / decoders / mxc6225xu / pd.py
index c1a2a810a9a3d560b6b78df94ecda135b19be41d..2f09488d2e2d5746e69139b1f84505e61f721291 100644 (file)
@@ -60,7 +60,7 @@ status = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'mxc6225xu'
     name = 'MXC6225XU'
     longname = 'MEMSIC MXC6225XU'
@@ -68,9 +68,6 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['mxc6225xu']
-    optional_probes = (
-        {'id': 'int', 'name': 'INT', 'desc': 'DTOS interrupt output pin'},
-    )
     annotations = (
         ('text', 'Human-readable text'),
     )
@@ -79,7 +76,6 @@ class Decoder(srd.Decoder):
         self.state = 'IDLE'
 
     def start(self):
-        # self.out_python = self.register(srd.OUTPUT_PYTHON)
         self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def putx(self, data):
@@ -217,6 +213,3 @@ class Decoder(srd.Decoder):
                 self.state = 'IDLE'
             else:
                 pass # TODO?
-        else:
-            raise Exception('Invalid state: %s' % self.state)
-