diff options
Diffstat (limited to 'decoders/i2cdemux')
-rw-r--r-- | decoders/i2cdemux/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index c6ab53d..2495e84 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -30,6 +30,9 @@ class Decoder(srd.Decoder): outputs = [] # TODO: Only known at run-time. def __init__(self): + self.reset() + + def reset(self): self.packets = [] # Local cache of I²C packets self.slaves = [] # List of known slave addresses self.stream = -1 # Current output stream |