summaryrefslogtreecommitdiff
path: root/decoders/atsha204a/pd.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-26 01:51:06 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-26 01:51:06 +0200
commit719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6 (patch)
tree49cebc15e4468356dcc9117d5089e16220c13b8c /decoders/atsha204a/pd.py
parent26d56154c141147a41f12e5298d0e0003c452859 (diff)
downloadlibsigrokdecode-719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6.tar.gz
libsigrokdecode-719bde9b1c078bfc61b800f6bddf43c5e3d4e0d6.zip
atsha204a: Add the reset() method.
Diffstat (limited to 'decoders/atsha204a/pd.py')
-rw-r--r--decoders/atsha204a/pd.py3
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