From 2f37032807e19bc93b7f3223e1568db46318790c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 23 Dec 2015 20:01:48 +0100 Subject: Use self.out_binary naming consistently across all PDs. --- decoders/uart/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/uart/pd.py') 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): -- cgit v1.2.3-70-g09d2