]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2cfilter/pd.py
All PDs: Bump api_version to 2.
[libsigrokdecode.git] / decoders / i2cfilter / pd.py
index 91269c0862b186b7dc07c6960a328d84b355aab1..f1ac6a40211c9f4a3e2ababc63737a4b6975e7f6 100644 (file)
@@ -23,7 +23,7 @@
 import sigrokdecode as srd
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'i2cfilter'
     name = 'I²C filter'
     longname = 'I²C filter'
@@ -31,15 +31,12 @@ class Decoder(srd.Decoder):
     license = 'gplv3+'
     inputs = ['i2c']
     outputs = ['i2c']
-    probes = []
-    optional_probes = []
     options = (
         {'id': 'address', 'desc': 'Address to filter out of the I²C stream',
             'default': 0},
         {'id': 'direction', 'desc': 'Direction to filter', 'default': 'both',
             'values': ('read', 'write', 'both')}
     )
-    annotations = []
 
     def __init__(self, **kwargs):
         self.state = None