usb_power_delivery: wait 1ms instead of 100k samples
[libsigrokdecode.git] / 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: