summaryrefslogtreecommitdiff
path: root/decoders/spi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2015-12-23 20:01:48 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2015-12-24 02:28:55 +0100
commit2f37032807e19bc93b7f3223e1568db46318790c (patch)
tree937b0b0d24112203fd14f2f6124567f5f81cf25f /decoders/spi
parent2824e81140d3a8e37464f758cf67f50f2f7afca7 (diff)
downloadlibsigrokdecode-2f37032807e19bc93b7f3223e1568db46318790c.tar.gz
libsigrokdecode-2f37032807e19bc93b7f3223e1568db46318790c.zip
Use self.out_binary naming consistently across all PDs.
Diffstat (limited to 'decoders/spi')
-rw-r--r--decoders/spi/pd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py
index 864bca6..fc8c7d0 100644
--- a/decoders/spi/pd.py
+++ b/decoders/spi/pd.py
@@ -149,7 +149,7 @@ class Decoder(srd.Decoder):
def start(self):
self.out_python = self.register(srd.OUTPUT_PYTHON)
self.out_ann = self.register(srd.OUTPUT_ANN)
- self.out_bin = self.register(srd.OUTPUT_BINARY)
+ self.out_binary = self.register(srd.OUTPUT_BINARY)
self.out_bitrate = self.register(srd.OUTPUT_META,
meta=(int, 'Bitrate', 'Bitrate during transfers'))
@@ -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_binary, [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_binary, [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])