From 2824e81140d3a8e37464f758cf67f50f2f7afca7 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 23 Dec 2015 20:00:45 +0100 Subject: Use a Python list (not tuple) for OUT_BINARY. This is more consistent with annotation syntax and looks slightly better in most cases. --- decoders/pwm/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/pwm/pd.py') 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) -- cgit v1.2.3-70-g09d2