X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmaxim_ds28ea00%2Fpd.py;h=1e2c36a0a77ccfcd6e8999280b67a0907a17e913;hb=21b39043472eeeb2e0155eafc73247f5010af714;hp=9f120ae63f083903555147f15c9a876542dba30a;hpb=4e4f8527de0927f2eb1d98e90b58e018ba28d341;p=libsigrokdecode.git diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index 9f120ae..1e2c36a 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -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,4 @@ 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)