summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-09-29 20:22:51 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2013-09-29 20:22:51 +0200
commitab96960eded15c227208e49007a0b3f65c046aa3 (patch)
treedda1731b8d1fe6c636b4b56918ecec53da887c7b
parentfdd5ee5e2ca54c287aecf8c31a3249d5f69fdd66 (diff)
downloadlibsigrokdecode-ab96960eded15c227208e49007a0b3f65c046aa3.tar.gz
libsigrokdecode-ab96960eded15c227208e49007a0b3f65c046aa3.zip
usb_signalling: Fix packet annotation.
-rw-r--r--decoders/usb_signalling/pd.py5
1 files changed, 3 insertions, 2 deletions
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