From fcbd63364b64383c437c6182110557ac30201a1f Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 18 Jun 2017 20:02:46 +0200 Subject: [PATCH] ir_rc5: Rephrase open coded value for start bit 1 Make obvious that the start bit's value is 1 in the IDLE stage. --- decoders/ir_rc5/pd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2