]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/maxim_ds28ea00/pd.py
All PDs: Only import the 'Decoder' object.
[libsigrokdecode.git] / decoders / maxim_ds28ea00 / pd.py
index 9f120ae63f083903555147f15c9a876542dba30a..229331fd393d0e917ab5bc0624df7218f9d6a3ce 100644 (file)
@@ -36,7 +36,7 @@ command = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'maxim_ds28ea00'
     name = 'DS28EA00'
     longname = 'Maxim DS28EA00 1-Wire digital thermometer'
@@ -88,6 +88,3 @@ class Decoder(srd.Decoder):
                 self.putx([0, ['Temperature conversion status: 0x%02x' % val]])
             elif self.state in [s.upper() for s in command.values()]:
                 self.putx([0, ['TODO \'%s\': 0x%02x' % (self.state, val)]])
-            else:
-                raise Exception('Invalid state: %s' % self.state)
-