summaryrefslogtreecommitdiff
path: root/decoders/spi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2015-12-23 20:00:45 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2015-12-24 02:28:55 +0100
commit2824e81140d3a8e37464f758cf67f50f2f7afca7 (patch)
tree10b54864ae16f2d9233e2d799bad08481e481792 /decoders/spi
parent0679f5bf9b2334deb75243abb80ef7e0d0472c18 (diff)
downloadlibsigrokdecode-2824e81140d3a8e37464f758cf67f50f2f7afca7.tar.gz
libsigrokdecode-2824e81140d3a8e37464f758cf67f50f2f7afca7.zip
Use a Python list (not tuple) for OUT_BINARY.
This is more consistent with annotation syntax and looks slightly better in most cases.
Diffstat (limited to 'decoders/spi')
-rw-r--r--decoders/spi/pd.py4
1 files changed, 2 insertions, 2 deletions
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])