ir_rc5: Rephrase open coded value for start bit 1
authorGerhard Sittig <gerhard.sittig@gmx.net>
Sun, 18 Jun 2017 18:02:46 +0000 (20:02 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Wed, 21 Jun 2017 15:45:15 +0000 (17:45 +0200)
Make obvious that the start bit's value is 1 in the IDLE stage.

decoders/ir_rc5/pd.py

index ae29f1028fd2418541e5c4d331fc85164629cfd4..edb29bd2b66e20a74450f9368ce347168c4880fe 100644 (file)
@@ -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