X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fi2cdemux%2Fpd.py;h=d28763b2f55a32c9a37b743da3cc997b2f7f6086;hp=e5cf47ac6696576098ae923a42fd9b17deb6bfc0;hb=4539e9ca58966ce3c9cad4801b16c315e86ace01;hpb=12851357e784b893e24880efc6cd22a0cbcc64ce diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index e5cf47a..d28763b 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -14,8 +14,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## import sigrokdecode as srd @@ -30,7 +29,7 @@ class Decoder(srd.Decoder): inputs = ['i2c'] outputs = [] # TODO: Only known at run-time. - def __init__(self, **kwargs): + def __init__(self): self.packets = [] # Local cache of I²C packets self.slaves = [] # List of known slave addresses self.stream = -1 # Current output stream @@ -75,4 +74,3 @@ class Decoder(srd.Decoder): self.stream = -1 else: pass # Do nothing, only add the I²C packet to our cache. -