From 719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 26 May 2018 01:51:06 +0200 Subject: atsha204a: Add the reset() method. --- decoders/atsha204a/pd.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoders/atsha204a') 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 -- cgit v1.2.3-70-g09d2