From: Uwe Hermann Date: Wed, 24 Apr 2019 19:57:35 +0000 (+0200) Subject: spi: Don't emit bogus "transfer" items. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4275cee21e63a7467ac8aee573515fc7cab1114d;p=libsigrokdecode.git spi: Don't emit bogus "transfer" items. --- 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)]])