From: Uwe Hermann Date: Sun, 29 Sep 2013 18:22:51 +0000 (+0200) Subject: usb_signalling: Fix packet annotation. X-Git-Tag: libsigrokdecode-0.3.0~293 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ab96960eded15c227208e49007a0b3f65c046aa3;p=libsigrokdecode.git usb_signalling: Fix packet annotation. --- diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index 3a5e395..df61628 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -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