summaryrefslogtreecommitdiff
path: root/decoders/nrf24l01/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/nrf24l01/pd.py')
-rw-r--r--decoders/nrf24l01/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/nrf24l01/pd.py b/decoders/nrf24l01/pd.py
index 38e5ac6..b026f59 100644
--- a/decoders/nrf24l01/pd.py
+++ b/decoders/nrf24l01/pd.py
@@ -272,8 +272,8 @@ class Decoder(srd.Decoder):
ptype, data1, data2 = data
if ptype == 'CS-CHANGE':
- if data1 == -1:
- if data2 == -1:
+ if data1 is None:
+ if data2 is None:
self.requirements_met = False
raise ChannelError('CS# pin required.')
elif data2 == 1: