summaryrefslogtreecommitdiff
path: root/decoders/onewire_network
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-01-30 22:37:29 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-01-30 22:42:24 +0100
commitc515eed7ef7a04a42b5b34abd308e08d6942835e (patch)
tree90d12109e96a091898a1d2961f8abc685d6fd06c /decoders/onewire_network
parent4467372a2e39bb72648eebbb96934147681110c2 (diff)
downloadlibsigrokdecode-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/onewire_network')
-rw-r--r--decoders/onewire_network/pd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/onewire_network/pd.py b/decoders/onewire_network/pd.py
index 19ee649..a80132e 100644
--- a/decoders/onewire_network/pd.py
+++ b/decoders/onewire_network/pd.py
@@ -60,7 +60,7 @@ class Decoder(srd.Decoder):
self.rom = 0x0000000000000000
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)
def putx(self, data):
@@ -69,7 +69,7 @@ class Decoder(srd.Decoder):
def puty(self, data):
# Helper function for most protocol packets.
- self.put(self.beg, self.end, self.out_proto, data)
+ self.put(self.beg, self.end, self.out_python, data)
def decode(self, ss, es, data):
code, val = data
@@ -80,7 +80,7 @@ class Decoder(srd.Decoder):
self.bit_cnt = 0
self.put(ss, es, self.out_ann,
[0, ['Reset/presence: %s' % ('true' if val else 'false')]])
- self.put(ss, es, self.out_proto, ['RESET/PRESENCE', val])
+ self.put(ss, es, self.out_python, ['RESET/PRESENCE', val])
self.state = 'COMMAND'
return