summaryrefslogtreecommitdiff
path: root/decoders/i2c.py
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-07 04:18:16 +0100
committerBert Vermeulen <bert@biot.com>2012-01-07 04:18:16 +0100
commit3e2a9de2adfc73a640fa352fdc1ebc804fc98a69 (patch)
tree68baa88c970a240d8d8f29f7a147f53527d25bec /decoders/i2c.py
parent0ee4dd54ce134158cd2068866ddc7d32c692d457 (diff)
downloadlibsigrokdecode-3e2a9de2adfc73a640fa352fdc1ebc804fc98a69.tar.gz
libsigrokdecode-3e2a9de2adfc73a640fa352fdc1ebc804fc98a69.zip
expose SRD_OUTPUT_* as symbols in the sigrokdecode module.
Diffstat (limited to 'decoders/i2c.py')
-rw-r--r--decoders/i2c.py4
1 files changed, 2 insertions, 2 deletions
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