From: Uwe Hermann Date: Wed, 5 Mar 2014 22:44:54 +0000 (+0100) Subject: ir_rc5: Fix incorrect bit length of RC-5 packets. X-Git-Tag: libsigrokdecode-0.3.0~65 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cbbccbf4faeffcd2607266fa396d801981ffcaa4;p=libsigrokdecode.git ir_rc5: Fix incorrect bit length of RC-5 packets. All RC-5 packets are 14 bits long. --- 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()