summaryrefslogtreecommitdiff
path: root/decoders/usb_power_delivery/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/usb_power_delivery/pd.py')
-rw-r--r--decoders/usb_power_delivery/pd.py3
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: