]> sigrok.org Git - libsigrokdecode.git/commitdiff
atsha204a: Add the reset() method.
authorUwe Hermann <redacted>
Fri, 25 May 2018 23:51:06 +0000 (01:51 +0200)
committerUwe Hermann <redacted>
Fri, 25 May 2018 23:51:06 +0000 (01:51 +0200)
decoders/atsha204a/pd.py

index 70b7b39b01a7e2bbbf124803d4269aff41c78e25..2353178d93c951b5f9375c4af73be6f897cc8b55 100644 (file)
@@ -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