]> sigrok.org Git - libsigrokdecode.git/commitdiff
usb_signalling: Fix packet annotation.
authorUwe Hermann <redacted>
Sun, 29 Sep 2013 18:22:51 +0000 (20:22 +0200)
committerUwe Hermann <redacted>
Sun, 29 Sep 2013 18:22:51 +0000 (20:22 +0200)
decoders/usb_signalling/pd.py

index 3a5e395f74a09495ad21930f7ab624a9bff0f9f3..df61628befe9d6eda851ffdc5c530e59e27736bc 100644 (file)
@@ -162,8 +162,9 @@ class Decoder(srd.Decoder):
             # Got an EOP, i.e. we now have a full packet.
             self.putpm(['EOP', None])
             self.putm([2, ['EOP']])
-            self.putpb(['PACKET', self.packet])
-            self.putb([5, ['PACKET: %s' % self.packet]])
+            self.ss_block = self.ss_sop
+            self.putpm(['PACKET', self.packet])
+            self.putm([5, ['PACKET: %s' % self.packet]])
             self.bitnum, self.packet, self.syms, self.state = 0, '', [], 'IDLE'
             self.consecutive_ones = 0