]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2cfilter/pd.py
ds2408: Add missing tags.
[libsigrokdecode.git] / decoders / i2cfilter / pd.py
index af09c496f78e0379aeabcfb247defdd063e9df21..7798e17ade222826a7c52e5e1fc63e26ecb907f5 100644 (file)
@@ -31,6 +31,7 @@ class Decoder(srd.Decoder):
     license = 'gplv3+'
     inputs = ['i2c']
     outputs = ['i2c']
+    tags = ['Util']
     options = (
         {'id': 'address', 'desc': 'Address to filter out of the I²C stream',
             'default': 0},
@@ -39,6 +40,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