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/pwm | |
parent | 2824e81140d3a8e37464f758cf67f50f2f7afca7 (diff) | |
download | libsigrokdecode-2f37032807e19bc93b7f3223e1568db46318790c.tar.gz libsigrokdecode-2f37032807e19bc93b7f3223e1568db46318790c.zip |
Use self.out_binary naming consistently across all PDs.
Diffstat (limited to 'decoders/pwm')
-rw-r--r-- | decoders/pwm/pd.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |