]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mlx90614/pd.py
srd_inst_decode(): Make the code API version dependent.
[libsigrokdecode.git] / decoders / mlx90614 / pd.py
index edc770d4ccc4d96f63cc20c8e3e68639c5cf157d..0a3abbaf62daf1aef006cdc285b89bb131b96f86 100644 (file)
@@ -34,7 +34,7 @@ class Decoder(srd.Decoder):
         ('kelvin', 'Temperature in Kelvin'),
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
         self.state = 'IGNORE START REPEAT'
         self.data = []
 
@@ -73,6 +73,3 @@ class Decoder(srd.Decoder):
                 self.putx([1, ['Temperature: %3.2f K' % kelvin]])
                 self.state = 'IGNORE START REPEAT'
                 self.data = []
-        else:
-            raise Exception('Invalid state: %s' % self.state)
-