diff options
-rw-r--r-- | decoders/ir_rc5/pd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index ae29f10..edb29bd 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -147,8 +147,9 @@ class Decoder(srd.Decoder): # State machine. if self.state == 'IDLE': + bit = 1 self.edges.append(self.samplenum) - self.bits.append([self.samplenum, 1]) + self.bits.append([self.samplenum, bit]) self.state = 'MID1' self.old_ir = self.ir continue |