summaryrefslogtreecommitdiff
path: root/decoders/ds1307
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/ds1307')
-rw-r--r--decoders/ds1307/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py
index 560d94d..414da65 100644
--- a/decoders/ds1307/pd.py
+++ b/decoders/ds1307/pd.py
@@ -75,6 +75,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IDLE'
self.hours = -1
self.minutes = -1