diff options
author | Peetz0r <peter@haas-en-berg.nl> | 2018-09-07 07:45:24 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-09 15:22:03 +0200 |
commit | df167c0f8ea1b28595e64894a555236c29c3c3de (patch) | |
tree | 2f4c3d5a93fd30a021b8ac218bf114a386592748 | |
parent | 57567cabb3d38918479e325e5574ce6d6011b202 (diff) | |
download | libsigrokdecode-df167c0f8ea1b28595e64894a555236c29c3c3de.tar.gz libsigrokdecode-df167c0f8ea1b28595e64894a555236c29c3c3de.zip |
usb_power_delivery: wait 1ms instead of 100k samples
-rw-r--r-- | decoders/usb_power_delivery/pd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/usb_power_delivery/pd.py b/decoders/usb_power_delivery/pd.py index 489fb68..58e4e17 100644 --- a/decoders/usb_power_delivery/pd.py +++ b/decoders/usb_power_delivery/pd.py @@ -545,8 +545,7 @@ class Decoder(srd.Decoder): if not self.samplerate: raise SamplerateError('Cannot decode without samplerate.') while True: - pins = self.wait([{0: 'e'}, {1: 'e'}, {'skip': 100*1000}]) - + pins = self.wait([{0: 'e'}, {1: 'e'}, {'skip': int(self.samplerate/1e3)}]) # First sample of the packet, just record the start date if not self.startsample: |