diff options
Diffstat (limited to 'decoders/ir_nec')
-rw-r--r-- | decoders/ir_nec/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/ir_nec/pd.py b/decoders/ir_nec/pd.py index 84b2e70..0362609 100644 --- a/decoders/ir_nec/pd.py +++ b/decoders/ir_nec/pd.py @@ -99,6 +99,9 @@ class Decoder(srd.Decoder): '%s' % btn[1]]]) def __init__(self): + self.reset() + + def reset(self): self.state = 'IDLE' self.ss_bit = self.ss_start = self.ss_other_edge = self.ss_remote = 0 self.data = self.count = self.active = None |