summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-04-24 21:57:35 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2019-04-24 22:02:16 +0200
commit4275cee21e63a7467ac8aee573515fc7cab1114d (patch)
tree44679019c6cd11653d91c8802fe47c3532a9cbfe
parenta69b0f0bfe92106228252eed05c1ce22859f15d8 (diff)
downloadlibsigrokdecode-4275cee21e63a7467ac8aee573515fc7cab1114d.tar.gz
libsigrokdecode-4275cee21e63a7467ac8aee573515fc7cab1114d.zip
spi: Don't emit bogus "transfer" items.
-rw-r--r--decoders/spi/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py
index 7cfa266..8d0d6ae 100644
--- a/decoders/spi/pd.py
+++ b/decoders/spi/pd.py
@@ -279,7 +279,7 @@ class Decoder(srd.Decoder):
self.ss_transfer = self.samplenum
self.misobytes = []
self.mosibytes = []
- else:
+ elif self.ss_transfer != -1:
if self.have_miso:
self.put(self.ss_transfer, self.samplenum, self.out_ann,
[5, [' '.join(format(x.val, '02X') for x in self.misobytes)]])