diff options
Diffstat (limited to 'decoders/nunchuk/pd.py')
-rw-r--r-- | decoders/nunchuk/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/nunchuk/pd.py b/decoders/nunchuk/pd.py index de6e157..4f006f2 100644 --- a/decoders/nunchuk/pd.py +++ b/decoders/nunchuk/pd.py @@ -47,6 +47,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.state = 'IDLE' self.sx = self.sy = self.ax = self.ay = self.az = self.bz = self.bc = -1 self.databytecount = 0 |