]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/atsha204a/pd.py
add LIN protocol decoder
[libsigrokdecode.git] / decoders / atsha204a / pd.py
index 70b7b39b01a7e2bbbf124803d4269aff41c78e25..a6a5a1dfa328953355fb02ef8673538485891f89 100644 (file)
@@ -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