diff options
Diffstat (limited to 'decoders/pwm')
-rw-r--r-- | decoders/pwm/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/pwm/pd.py b/decoders/pwm/pd.py index e0203a3..7b10d97 100644 --- a/decoders/pwm/pd.py +++ b/decoders/pwm/pd.py @@ -132,7 +132,7 @@ class Decoder(srd.Decoder): self.putx([0, ['%f%%' % percent]]) # Report the duty cycle in the binary output. - self.putb((0, bytes([int(ratio * 256)]))) + self.putb([0, bytes([int(ratio * 256)])]) # Report the period in units of time. period_t = float(period / self.samplerate) |