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/spi/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/spi/pd.py') diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index 3040ed2..864bca6 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -165,10 +165,10 @@ class Decoder(srd.Decoder): if self.have_miso: ss, es = self.misobits[-1][1], self.misobits[0][2] - self.put(ss, es, self.out_bin, (0, bytes([so]))) + self.put(ss, es, self.out_bin, [0, bytes([so])]) if self.have_mosi: ss, es = self.mosibits[-1][1], self.mosibits[0][2] - self.put(ss, es, self.out_bin, (1, bytes([si]))) + self.put(ss, es, self.out_bin, [1, bytes([si])]) self.put(ss, es, self.out_python, ['BITS', si_bits, so_bits]) self.put(ss, es, self.out_python, ['DATA', si, so]) -- cgit v1.2.3-70-g09d2