From cbbccbf4faeffcd2607266fa396d801981ffcaa4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 5 Mar 2014 23:44:54 +0100 Subject: ir_rc5: Fix incorrect bit length of RC-5 packets. All RC-5 packets are 14 bits long. --- decoders/ir_rc5/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index cd94eae..ad2b4a5 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -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() -- cgit v1.2.3-70-g09d2