diff options
Diffstat (limited to 'decoders/i2c')
-rw-r--r-- | decoders/i2c/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index d0c2ea7..7f8960d 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -108,6 +108,9 @@ class Decoder(srd.Decoder): ) def __init__(self): + self.reset() + + def reset(self): self.samplerate = None self.ss = self.es = self.ss_byte = -1 self.bitcount = 0 |