]> sigrok.org Git - libsigrokdecode.git/commitdiff
ir_rc5: Fix incorrect bit length of RC-5 packets.
authorUwe Hermann <redacted>
Wed, 5 Mar 2014 22:44:54 +0000 (23:44 +0100)
committerUwe Hermann <redacted>
Wed, 5 Mar 2014 22:44:54 +0000 (23:44 +0100)
All RC-5 packets are 14 bits long.

decoders/ir_rc5/pd.py

index cd94eae1159a59d816bb940622017e023e5d3d23..ad2b4a5480330693dba946c4e5762e1973312883 100644 (file)
@@ -174,7 +174,7 @@ class Decoder(srd.Decoder):
             if bit != None:
                 self.bits.append([self.samplenum, bit])
 
-            if len(self.bits) == 14 + 1:
+            if len(self.bits) == 14:
                 self.handle_bits()
                 self.reset_decoder_state()