]> sigrok.org Git - libsigrokdecode.git/commitdiff
spi: Don't emit bogus "transfer" items.
authorUwe Hermann <redacted>
Wed, 24 Apr 2019 19:57:35 +0000 (21:57 +0200)
committerUwe Hermann <redacted>
Wed, 24 Apr 2019 20:02:16 +0000 (22:02 +0200)
decoders/spi/pd.py

index 7cfa2662adbfbf957ba2895fa8df2fd85ec231a6..8d0d6ae3a39a3d53b1851432984f20a23edf4b63 100644 (file)
@@ -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)]])