diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-23 20:01:48 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-24 02:28:55 +0100 |
commit | 2f37032807e19bc93b7f3223e1568db46318790c (patch) | |
tree | 937b0b0d24112203fd14f2f6124567f5f81cf25f /decoders/uart | |
parent | 2824e81140d3a8e37464f758cf67f50f2f7afca7 (diff) | |
download | libsigrokdecode-2f37032807e19bc93b7f3223e1568db46318790c.tar.gz libsigrokdecode-2f37032807e19bc93b7f3223e1568db46318790c.zip |
Use self.out_binary naming consistently across all PDs.
Diffstat (limited to 'decoders/uart')
-rw-r--r-- | decoders/uart/pd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index 4c37c34..d42a5d4 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -157,7 +157,7 @@ class Decoder(srd.Decoder): def putbin(self, rxtx, data): s, halfbit = self.startsample[rxtx], self.bit_width / 2.0 - self.put(s - floor(halfbit), self.samplenum + ceil(halfbit), self.out_bin, data) + self.put(s - floor(halfbit), self.samplenum + ceil(halfbit), self.out_binary, data) def __init__(self, **kwargs): self.samplerate = None @@ -176,7 +176,7 @@ class Decoder(srd.Decoder): def start(self): self.out_python = self.register(srd.OUTPUT_PYTHON) - self.out_bin = self.register(srd.OUTPUT_BINARY) + self.out_binary = self.register(srd.OUTPUT_BINARY) self.out_ann = self.register(srd.OUTPUT_ANN) def metadata(self, key, value): |