X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fi2c.py;h=11ee9b5fb83ed191406293299590a88e986faaac;hb=56202222ed83ff030239bb23be8296574674c4f7;hp=69827984f0586683ed7fa92bef8630bfb93decd0;hpb=677d597b072c0a1d2df81c5c193cd3678aef8d03;p=libsigrokdecode.git diff --git a/decoders/i2c.py b/decoders/i2c.py index 6982798..11ee9b5 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -149,8 +149,6 @@ class Decoder(srd.Decoder): ] def __init__(self, **kwargs): - self.out_proto = None - self.out_ann = None self.samplecnt = 0 self.bitcount = 0 self.databyte = 0 @@ -162,8 +160,8 @@ class Decoder(srd.Decoder): self.oldsda = None def start(self, metadata): - self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'i2c') - self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'i2c') + self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c') + self.out_ann = self.add(srd.OUTPUT_ANN, 'i2c') def report(self): pass