X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmaxim_ds28ea00%2Fpd.py;h=229331fd393d0e917ab5bc0624df7218f9d6a3ce;hb=35b380b1156434b73d4a976c68f5ab3604c8510a;hp=2492c6bcfeb270f799615e7557c15a1187aa372c;hpb=da9bcbd9f45b0153465c55ec726a0d76f6d7f01e;p=libsigrokdecode.git diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index 2492c6b..229331f 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' @@ -44,12 +44,6 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['onewire_network'] outputs = ['maxim_ds28ea00'] - optional_probes = ( - {'id': 'pioa', 'name': 'PIOA/DONE#', - 'desc': 'PIOA channel and chain output'}, - {'id': 'piob', 'name': 'PIOB/EN#', - 'desc': 'PIOB channel and chain output'}, - ) annotations = ( ('text', 'Human-readable text'), ) @@ -94,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) -