]> sigrok.org Git - libsigrokdecode.git/commitdiff
usb_power_delivery: wait 1ms instead of 100k samples
authorPeetz0r <redacted>
Fri, 7 Sep 2018 05:45:24 +0000 (07:45 +0200)
committerUwe Hermann <redacted>
Sun, 9 Sep 2018 13:22:03 +0000 (15:22 +0200)
decoders/usb_power_delivery/pd.py

index 489fb6834f37230d0ac41305c25ed0ca6a1565d8..58e4e1722711c3a62144265fae4e9ee366bbad83 100644 (file)
@@ -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: