From df167c0f8ea1b28595e64894a555236c29c3c3de Mon Sep 17 00:00:00 2001 From: Peetz0r Date: Fri, 7 Sep 2018 07:45:24 +0200 Subject: usb_power_delivery: wait 1ms instead of 100k samples --- decoders/usb_power_delivery/pd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoders/usb_power_delivery') 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: -- cgit v1.2.3-70-g09d2