summaryrefslogtreecommitdiff
path: root/decoders/i2cfilter/pd.py
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-11-05 11:21:33 +0100
committerBert Vermeulen <bert@biot.com>2013-11-07 22:47:42 +0100
commitf2a5df42ea41e6c4370d4efa1a27ab942ba1ddff (patch)
tree2e62755d1bcbbdb1bd0742eec7f9bed21b28bb7a /decoders/i2cfilter/pd.py
parent98e0b79b9fd2abf076054abc5f25c184b436cb87 (diff)
downloadlibsigrokdecode-f2a5df42ea41e6c4370d4efa1a27ab942ba1ddff.tar.gz
libsigrokdecode-f2a5df42ea41e6c4370d4efa1a27ab942ba1ddff.zip
Rename inter-PD output type to SRD_OUTPUT_PYTHON
This better reflects what it is: a python object generated and processed by python code.
Diffstat (limited to 'decoders/i2cfilter/pd.py')
-rw-r--r--decoders/i2cfilter/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py
index c0f9a0b..4586cf7 100644
--- a/decoders/i2cfilter/pd.py
+++ b/decoders/i2cfilter/pd.py
@@ -48,7 +48,7 @@ class Decoder(srd.Decoder):
self.packets = [] # Local cache of I2C packets
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2c')
if self.options['address'] not in range(0, 127 + 1):
raise Exception('Invalid slave (must be 0..127).')
if self.options['direction'] not in ('both', 'read', 'write'):