diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-03-05 23:44:54 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-03-05 23:44:54 +0100 |
commit | cbbccbf4faeffcd2607266fa396d801981ffcaa4 (patch) | |
tree | 329b1b9b21a95703e512cbd4b669640989a2c8ce | |
parent | 16211e24f7a34590f02e9f8a327b1eb3647c7c62 (diff) | |
download | libsigrokdecode-cbbccbf4faeffcd2607266fa396d801981ffcaa4.tar.gz libsigrokdecode-cbbccbf4faeffcd2607266fa396d801981ffcaa4.zip |
ir_rc5: Fix incorrect bit length of RC-5 packets.
All RC-5 packets are 14 bits long.
-rw-r--r-- | decoders/ir_rc5/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |