diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-04 22:11:14 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-04 22:44:23 +0100 |
commit | 502acfc2c71a2bbc97d4d7597150cd479bead1ee (patch) | |
tree | 9b2adbb921057af1012bb185986acb30a621d91e /decoders/usb_signalling | |
parent | 1647db062c75b5058fbbd581438a25e76f17cde6 (diff) | |
download | libsigrokdecode-502acfc2c71a2bbc97d4d7597150cd479bead1ee.tar.gz libsigrokdecode-502acfc2c71a2bbc97d4d7597150cd479bead1ee.zip |
usb*: Minor cosmetics.
Diffstat (limited to 'decoders/usb_signalling')
-rw-r--r-- | decoders/usb_signalling/pd.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index cea579a..c60075c 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -69,10 +69,11 @@ symbols = { (0, 1): 'LS_J', (1, 1): 'SE1', }, -# After a PREamble PID, the bus segment between Host and Hub uses LS signalling -# rate and FS signalling polarity (USB 2.0 spec, 11.8.4: "For both upstream and -# downstream low-speed data, the hub is responsible for inverting the polarity of -# the data before transmitting to/from a low-speed port." + # After a PREamble PID, the bus segment between Host and Hub uses LS + # signalling rate and FS signalling polarity (USB 2.0 spec, 11.8.4: "For + # both upstream and downstream low-speed data, the hub is responsible for + # inverting the polarity of the data before transmitting to/from a + # low-speed port."). 'low-speed-rp': { # (<dp>, <dm>): <symbol/state> (0, 0): 'SE0', @@ -83,8 +84,8 @@ symbols = { } bitrates = { - 'low-speed': 1500000, # 1.5Mb/s (+/- 1.5%) - 'low-speed-rp': 1500000, # 1.5Mb/s (+/- 1.5%) + 'low-speed': 1500000, # 1.5Mb/s (+/- 1.5%) + 'low-speed-rp': 1500000, # 1.5Mb/s (+/- 1.5%) 'full-speed': 12000000, # 12Mb/s (+/- 0.25%) 'automatic': None } @@ -201,7 +202,7 @@ class Decoder(srd.Decoder): if sym != 'K' or self.oldsym != 'J': return self.consecutive_ones = 0 - self.bits = "" + self.bits = '' self.update_bitrate() self.samplepos = self.samplenum - (self.bitwidth / 2) + 0.5 self.set_new_target_samplenum() |