summaryrefslogtreecommitdiff
path: root/decoders/stepper_motor
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/stepper_motor')
-rw-r--r--decoders/stepper_motor/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/stepper_motor/pd.py b/decoders/stepper_motor/pd.py
index 52e3e63..9ddc645 100644
--- a/decoders/stepper_motor/pd.py
+++ b/decoders/stepper_motor/pd.py
@@ -50,6 +50,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.oldstep = None
self.ss_prev_step = None
self.pos = 0