X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fatsha204a%2Fpd.py;h=a6a5a1dfa328953355fb02ef8673538485891f89;hb=fe9160d567fbb4c890ac7b8bc2e1f2f9143f0935;hp=70b7b39b01a7e2bbbf124803d4269aff41c78e25;hpb=26d56154c141147a41f12e5298d0e0003c452859;p=libsigrokdecode.git diff --git a/decoders/atsha204a/pd.py b/decoders/atsha204a/pd.py index 70b7b39..a6a5a1d 100644 --- a/decoders/atsha204a/pd.py +++ b/decoders/atsha204a/pd.py @@ -85,7 +85,7 @@ class Decoder(srd.Decoder): id = 'atsha204a' name = 'ATSHA204A' longname = 'Microchip ATSHA204A' - desc = 'Microchip ATSHA204A CryptoAuthentication device' + desc = 'Microchip ATSHA204A CryptoAuthentication device.' license = 'gplv2+' inputs = ['i2c'] outputs = ['atsha204a'] @@ -107,6 +107,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.state = 'IDLE' self.waddr = self.opcode = -1 self.ss_block = self.es_block = 0