summaryrefslogtreecommitdiff
path: root/decoders/ir_rc5
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/ir_rc5')
-rw-r--r--decoders/ir_rc5/__init__.py1
-rw-r--r--decoders/ir_rc5/lists.py1
-rw-r--r--decoders/ir_rc5/pd.py3
3 files changed, 1 insertions, 4 deletions
diff --git a/decoders/ir_rc5/__init__.py b/decoders/ir_rc5/__init__.py
index 085082f..d94824d 100644
--- a/decoders/ir_rc5/__init__.py
+++ b/decoders/ir_rc5/__init__.py
@@ -23,4 +23,3 @@ RC-5 is a biphase/manchester based infrared remote control protocol.
'''
from .pd import *
-
diff --git a/decoders/ir_rc5/lists.py b/decoders/ir_rc5/lists.py
index 8a81ef7..2ac227e 100644
--- a/decoders/ir_rc5/lists.py
+++ b/decoders/ir_rc5/lists.py
@@ -92,4 +92,3 @@ command = {
55: ['Recording', 'Rec'],
}.items())),
}
-
diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py
index bd99826..4926cb6 100644
--- a/decoders/ir_rc5/pd.py
+++ b/decoders/ir_rc5/pd.py
@@ -173,7 +173,7 @@ class Decoder(srd.Decoder):
bit = 0 if edge == 's' else None
self.edges.append(self.samplenum)
- if bit != None:
+ if bit is not None:
self.bits.append([self.samplenum, bit])
if len(self.bits) == 14:
@@ -181,4 +181,3 @@ class Decoder(srd.Decoder):
self.reset_decoder_state()
self.old_ir = self.ir
-