diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-26 01:51:06 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-26 01:51:06 +0200 |
commit | 719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6 (patch) | |
tree | 49cebc15e4468356dcc9117d5089e16220c13b8c | |
parent | 26d56154c141147a41f12e5298d0e0003c452859 (diff) | |
download | libsigrokdecode-719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6.tar.gz libsigrokdecode-719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6.zip |
atsha204a: Add the reset() method.
-rw-r--r-- | decoders/atsha204a/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |