diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 22:37:29 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-01-30 22:42:24 +0100 |
commit | c515eed7ef7a04a42b5b34abd308e08d6942835e (patch) | |
tree | 90d12109e96a091898a1d2961f8abc685d6fd06c /decoders/i2cfilter | |
parent | 4467372a2e39bb72648eebbb96934147681110c2 (diff) | |
download | libsigrokdecode-c515eed7ef7a04a42b5b34abd308e08d6942835e.tar.gz libsigrokdecode-c515eed7ef7a04a42b5b34abd308e08d6942835e.zip |
s/out_proto/out_python/.
The output type is now called OUTPUT_PYTHON, adapt all PDs to that.
Diffstat (limited to 'decoders/i2cfilter')
-rw-r--r-- | decoders/i2cfilter/pd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 70613d2..09c12f1 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -46,7 +46,7 @@ class Decoder(srd.Decoder): self.packets = [] # Local cache of I²C packets def start(self): - self.out_proto = self.register(srd.OUTPUT_PYTHON, proto_id='i2c') + self.out_python = self.register(srd.OUTPUT_PYTHON, proto_id='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'): @@ -86,7 +86,7 @@ class Decoder(srd.Decoder): # TODO: START->STOP chunks with both read and write (Repeat START) # Otherwise, send out the whole chunk of I²C packets. for p in self.packets: - self.put(p[0], p[1], self.out_proto, p[2]) + self.put(p[0], p[1], self.out_python, p[2]) self.packets = [] else: |