From: Peetz0r Date: Fri, 7 Sep 2018 05:45:24 +0000 (+0200) Subject: usb_power_delivery: wait 1ms instead of 100k samples X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=df167c0f8ea1b28595e64894a555236c29c3c3de;p=libsigrokdecode.git usb_power_delivery: wait 1ms instead of 100k samples --- 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: