summaryrefslogtreecommitdiff
path: root/decoders/lpc/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/lpc/pd.py')
-rw-r--r--decoders/lpc/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py
index c737544..7242208 100644
--- a/decoders/lpc/pd.py
+++ b/decoders/lpc/pd.py
@@ -136,6 +136,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IDLE'
self.oldlclk = -1
self.samplenum = 0