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/uart | |
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/uart')
-rw-r--r-- | decoders/uart/pd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index 00be94b..051c803 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -21,7 +21,7 @@ import sigrokdecode as srd ''' -Protocol output format: +OUTPUT_PYTHON format: UART packet: [<packet-type>, <rxtx>, <packet-data>] @@ -118,7 +118,7 @@ class Decoder(srd.Decoder): def putp(self, data): s, halfbit = self.samplenum, int(self.bit_width / 2) - self.put(s - halfbit, s + halfbit, self.out_proto, data) + self.put(s - halfbit, s + halfbit, self.out_python, data) def putbin(self, rxtx, data): s, halfbit = self.startsample[rxtx], int(self.bit_width / 2) @@ -139,7 +139,7 @@ class Decoder(srd.Decoder): self.oldpins = [1, 1] def start(self): - self.out_proto = self.register(srd.OUTPUT_PYTHON) + self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_bin = self.register(srd.OUTPUT_BINARY) self.out_ann = self.register(srd.OUTPUT_ANN) |