summaryrefslogtreecommitdiff
path: root/decoders/dcf77/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/dcf77/pd.py')
-rw-r--r--decoders/dcf77/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py
index a4e87f6..7b180ce 100644
--- a/decoders/dcf77/pd.py
+++ b/decoders/dcf77/pd.py
@@ -65,6 +65,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.samplerate = None
self.state = 'WAIT FOR RISING EDGE'
self.ss_bit = self.ss_bit_old = self.es_bit = self.ss_block = 0