summaryrefslogtreecommitdiff
path: root/decoders/spi
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/spi')
-rw-r--r--decoders/spi/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py
index 7b979f0..32fe8da 100644
--- a/decoders/spi/pd.py
+++ b/decoders/spi/pd.py
@@ -121,6 +121,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.samplerate = None
self.bitcount = 0
self.misodata = self.mosidata = 0