summaryrefslogtreecommitdiff
path: root/decoders/em4100
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/em4100')
-rw-r--r--decoders/em4100/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/em4100/pd.py b/decoders/em4100/pd.py
index 711c0fa..778cfd1 100644
--- a/decoders/em4100/pd.py
+++ b/decoders/em4100/pd.py
@@ -62,6 +62,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.samplerate = None
self.oldpin = None
self.last_samplenum = None