From: Uwe Hermann Date: Fri, 25 May 2018 23:51:06 +0000 (+0200) Subject: atsha204a: Add the reset() method. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6;p=libsigrokdecode.git atsha204a: Add the reset() method. --- diff --git a/decoders/atsha204a/pd.py b/decoders/atsha204a/pd.py index 70b7b39..2353178 100644 --- a/decoders/atsha204a/pd.py +++ b/decoders/atsha204a/pd.py @@ -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