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/i2cdemux | |
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/i2cdemux')
-rw-r--r-- | decoders/i2cdemux/pd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index 23c4253..12ebb88 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -41,7 +41,7 @@ class Decoder(srd.Decoder): self.streamcount = 0 # Number of created output streams def start(self): - self.out_proto = [] + self.out_python = [] # Grab I²C packets into a local cache, until an I²C STOP condition # packet comes along. At some point before that STOP condition, there @@ -63,8 +63,8 @@ class Decoder(srd.Decoder): # We're never seen this slave, add a new stream. self.slaves.append(databyte) - self.out_proto.append(self.register(srd.OUTPUT_PYTHON, - proto_id='i2c-%s' % hex(databyte))) + self.out_python.append(self.register(srd.OUTPUT_PYTHON, + proto_id='i2c-%s' % hex(databyte))) self.stream = self.streamcount self.streamcount += 1 elif cmd == 'STOP': @@ -73,7 +73,7 @@ class Decoder(srd.Decoder): # Send the whole chunk of I²C packets to the correct stream. for p in self.packets: - self.put(p[0], p[1], self.out_proto[self.stream], p[2]) + self.put(p[0], p[1], self.out_python[self.stream], p[2]) self.packets = [] self.stream = -1 |