X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fi2c.py;h=2a10ab7408eb4c8950f27a46ff549a065c2a373a;hp=23b12c34f4791720067d068f82627aa42dd60972;hb=3e2a9de2adfc73a640fa352fdc1ebc804fc98a69;hpb=0ee4dd54ce134158cd2068866ddc7d32c692d457 diff --git a/decoders/i2c.py b/decoders/i2c.py index 23b12c3..2a10ab7 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -180,8 +180,8 @@ class Decoder(sigrokdecode.Decoder): self.oldsda = None def start(self, metadata): - self.output_protocol = self.output_new(1, 'i2c') - self.output_annotation = self.output_new(0, 'i2c') + self.output_protocol = self.output_new(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'i2c') + self.output_annotation = self.output_new(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'i2c') def report(self): pass