From 4275cee21e63a7467ac8aee573515fc7cab1114d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 24 Apr 2019 21:57:35 +0200 Subject: spi: Don't emit bogus "transfer" items. --- decoders/spi/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders') 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)]]) -- cgit v1.2.3-70-g09d2