X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fi2cdemux%2Fpd.py;h=3904643f4947c827727ec882a8037f412251f3a9;hp=1e1d09c7910489a1346da0a7b408e756b4bcef8b;hb=0169f19c53e195df2f96c4df731ad3214c59e20a;hpb=f2a5df42ea41e6c4370d4efa1a27ab942ba1ddff diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index 1e1d09c..3904643 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -45,9 +45,6 @@ class Decoder(srd.Decoder): def start(self): self.out_proto = [] - def report(self): - pass - # Grab I2C packets into a local cache, until an I2C STOP condition # packet comes along. At some point before that STOP condition, there # will have been an ADDRESS READ or ADDRESS WRITE which contains the @@ -68,8 +65,8 @@ class Decoder(srd.Decoder): # We're never seen this slave, add a new stream. self.slaves.append(databyte) - self.out_proto.append(self.add(srd.OUTPUT_PYTHON, - 'i2c-%s' % hex(databyte))) + self.out_proto.append(self.register(srd.OUTPUT_PYTHON, + proto_id='i2c-%s' % hex(databyte))) self.stream = self.streamcount self.streamcount += 1 elif cmd == 'STOP':