]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/pwm/pd.py
Use a Python list (not tuple) for OUT_BINARY.
[libsigrokdecode.git] / decoders / pwm / pd.py
index e0203a3b7d484ae41ae9d6782ca20a05b50fa6b0..7b10d977525426d93ec591863f0654574ba1d67d 100644 (file)
@@ -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)