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/pwm/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/pwm/pd.py') diff --git a/decoders/pwm/pd.py b/decoders/pwm/pd.py index 7b10d97..7bf21f4 100644 --- a/decoders/pwm/pd.py +++ b/decoders/pwm/pd.py @@ -66,7 +66,7 @@ class Decoder(srd.Decoder): def start(self): self.startedge = 0 if self.options['polarity'] == 'active-low' else 1 self.out_ann = self.register(srd.OUTPUT_ANN) - self.out_bin = self.register(srd.OUTPUT_BINARY) + self.out_binary = self.register(srd.OUTPUT_BINARY) self.out_average = \ self.register(srd.OUTPUT_META, meta=(float, 'Average', 'PWM base (cycle) frequency')) @@ -92,7 +92,7 @@ class Decoder(srd.Decoder): self.put(self.ss, self.es, self.out_ann, [1, [period_s]]) def putb(self, data): - self.put(self.num_cycles, self.num_cycles, self.out_bin, data) + self.put(self.num_cycles, self.num_cycles, self.out_binary, data) def decode(self, ss, es, data): -- cgit v1.2.3-70-g09d2