X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fds243x%2Fpd.py;h=7f9f6660cc86ec2293c866b4ecf04d50e05a2d12;hb=3b593817d2824d925952c22321ee3ec2442c299c;hp=c7869a8d9c4af3ab2b39dcd4d4edc50b4ccdce58;hpb=10aeb8ea8b183394cebc0033f048f49f4262b57d;p=libsigrokdecode.git diff --git a/decoders/ds243x/pd.py b/decoders/ds243x/pd.py index c7869a8..7f9f666 100644 --- a/decoders/ds243x/pd.py +++ b/decoders/ds243x/pd.py @@ -64,11 +64,12 @@ class Decoder(srd.Decoder): api_version = 3 id = 'ds243x' name = 'DS243x' - longname = 'Maxim DS2432/2433' + longname = 'Maxim DS2432/3' desc = 'Maxim DS243x series 1-Wire EEPROM protocol.' license = 'gplv2+' inputs = ['onewire_network'] - outputs = ['ds243x'] + outputs = [] + tags = ['IC', 'Memory'] annotations = ( ('text', 'Human-readable text'), ) @@ -110,7 +111,7 @@ class Decoder(srd.Decoder): self.family, self.commands = family_codes[val & 0xff] s = 'is 0x%02x, %s detected' % (self.family_code, self.family) else: - s = '%x%02x unknown' % (self.family_code) + s = '0x%02x unknown' % (self.family_code) self.putx([0, ['ROM: 0x%016x (%s)' % (val, 'family code ' + s), 'ROM: 0x%016x (%s)' % (val, self.family)]])