summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-03-05 23:44:54 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-03-05 23:44:54 +0100
commitcbbccbf4faeffcd2607266fa396d801981ffcaa4 (patch)
tree329b1b9b21a95703e512cbd4b669640989a2c8ce /decoders
parent16211e24f7a34590f02e9f8a327b1eb3647c7c62 (diff)
downloadlibsigrokdecode-cbbccbf4faeffcd2607266fa396d801981ffcaa4.tar.gz
libsigrokdecode-cbbccbf4faeffcd2607266fa396d801981ffcaa4.zip
ir_rc5: Fix incorrect bit length of RC-5 packets.
All RC-5 packets are 14 bits long.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/ir_rc5/pd.py2
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()