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/usb_power_delivery/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/usb_power_delivery') diff --git a/decoders/usb_power_delivery/pd.py b/decoders/usb_power_delivery/pd.py index 034c4a9..da73661 100644 --- a/decoders/usb_power_delivery/pd.py +++ b/decoders/usb_power_delivery/pd.py @@ -524,7 +524,7 @@ class Decoder(srd.Decoder): bitrate = self.samplerate*len(self.bits) / float(es - ss) self.put(es, ss, self.out_bitrate, int(bitrate)) # Raw binary data (BMC decoded) - self.put(es, ss, self.out_binary, (0, bytes(self.bits))) + self.put(es, ss, self.out_binary, [0, bytes(self.bits)]) def decode(self, ss, es, data): if not self.samplerate: -- cgit v1.2.3-70-g09d2