X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fpwm%2Fpd.py;fp=decoders%2Fpwm%2Fpd.py;h=7b10d977525426d93ec591863f0654574ba1d67d;hp=e0203a3b7d484ae41ae9d6782ca20a05b50fa6b0;hb=2824e81140d3a8e37464f758cf67f50f2f7afca7;hpb=0679f5bf9b2334deb75243abb80ef7e0d0472c18 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)