summaryrefslogtreecommitdiff
path: root/decoders/i2cfilter
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/i2cfilter')
-rw-r--r--decoders/i2cfilter/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py
index af09c49..1dc7fd1 100644
--- a/decoders/i2cfilter/pd.py
+++ b/decoders/i2cfilter/pd.py
@@ -39,6 +39,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.curslave = -1
self.curdirection = None
self.packets = [] # Local cache of I²C packets