summaryrefslogtreecommitdiff
path: root/decoders/usb_power_delivery
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/usb_power_delivery')
-rw-r--r--decoders/usb_power_delivery/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/usb_power_delivery/pd.py b/decoders/usb_power_delivery/pd.py
index 3258ac3..a2d6b4d 100644
--- a/decoders/usb_power_delivery/pd.py
+++ b/decoders/usb_power_delivery/pd.py
@@ -439,6 +439,9 @@ class Decoder(srd.Decoder):
return -1 # No Start Of Packet
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.samplerate = None
self.idx = 0
self.packet_seq = 0