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/i2c | |
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/i2c')
-rw-r--r-- | decoders/i2c/pd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index a959eca..4d77920 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -26,7 +26,7 @@ import sigrokdecode as srd ''' -Protocol output format: +OUTPUT_PYTHON format: I²C packet: [<cmd>, <data>] @@ -117,7 +117,7 @@ class Decoder(srd.Decoder): self.samplerate = value def start(self): - self.out_proto = self.register(srd.OUTPUT_PYTHON) + self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) self.out_binary = self.register(srd.OUTPUT_BINARY) self.out_bitrate = self.register(srd.OUTPUT_META, @@ -127,7 +127,7 @@ class Decoder(srd.Decoder): self.put(self.startsample, self.samplenum, self.out_ann, data) def putp(self, data): - self.put(self.startsample, self.samplenum, self.out_proto, data) + self.put(self.startsample, self.samplenum, self.out_python, data) def putb(self, data): self.put(self.startsample, self.samplenum, self.out_binary, data) |