]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2cfilter/pd.py
The start() method no longer takes a metadata parameter
[libsigrokdecode.git] / decoders / i2cfilter / pd.py
index 9c9c43aff8d5240994cfffd42331725e6f9b8183..c0f9a0b14c36ec1072c39c08c7f6f84d80da8f55 100644 (file)
@@ -1,5 +1,5 @@
 ##
-## This file is part of the sigrok project.
+## This file is part of the libsigrokdecode project.
 ##
 ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
@@ -47,7 +47,7 @@ class Decoder(srd.Decoder):
         self.curdirection = None
         self.packets = [] # Local cache of I2C packets
 
-    def start(self, metadata):
+    def start(self):
         self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
         if self.options['address'] not in range(0, 127 + 1):
             raise Exception('Invalid slave (must be 0..127).')