summaryrefslogtreecommitdiff
path: root/decoders/onewire_link/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/onewire_link/pd.py')
-rw-r--r--decoders/onewire_link/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py
index ca32415..72aea83 100644
--- a/decoders/onewire_link/pd.py
+++ b/decoders/onewire_link/pd.py
@@ -118,6 +118,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.samplerate = None
self.state = 'INITIAL'
self.present = 0