diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-03-18 20:04:10 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-03-18 20:04:10 +0100 |
commit | b413721ccb254e99cf8b8991bb1adf2fb26b53a6 (patch) | |
tree | bb1dbe8ca7f86efdb93655fbd615c45841228ab3 /decoders | |
parent | 5bc679c6b0367558b7ce94cfa6cd45b483ad98c9 (diff) | |
download | libsigrokdecode-b413721ccb254e99cf8b8991bb1adf2fb26b53a6.tar.gz libsigrokdecode-b413721ccb254e99cf8b8991bb1adf2fb26b53a6.zip |
usb_signalling: Provide better short/long annotations.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/usb_signalling/pd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index 8b98b7e..f514c48 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -156,14 +156,14 @@ class Decoder(srd.Decoder): self.ss_sop = self.samplenum self.set_new_target_samplenum() self.putpx(['SOP', None]) - self.putx([1, ['SOP']]) + self.putx([1, ['SOP', 'S']]) self.state = 'GET BIT' def handle_bit(self, sym, b): if self.consecutive_ones == 6 and b == '0': # Stuff bit. self.putpb(['STUFF BIT', None]) - self.putb([4, ['SB: %s' % b]]) + self.putb([4, ['Stuff bit: %s' % b, 'SB: %s' % b, '%s' % b]]) self.putb([0, ['%s' % sym]]) self.consecutive_ones = 0 else: @@ -180,14 +180,14 @@ class Decoder(srd.Decoder): # EOP: SE0 for >= 1 bittime (usually 2 bittimes), then J. self.syms.append(sym) self.putpb(['SYM', sym]) - self.putb([0, ['%s' % sym]]) + self.putb([0, ['%s' % sym, '%s' % sym[0]]]) self.bitnum += 1 self.set_new_target_samplenum() self.oldsym = sym if self.syms[-2:] == ['SE0', 'J']: # Got an EOP. self.putpm(['EOP', None]) - self.putm([2, ['EOP']]) + self.putm([2, ['EOP', 'E']]) self.bitnum, self.syms, self.state = 0, [], 'IDLE' self.consecutive_ones = 0 |