From 8a110ab1ea46d89d36a610e4249fe1eabed27757 Mon Sep 17 00:00:00 2001 From: Jens Steinhauser Date: Sun, 19 Oct 2014 22:54:51 +0200 Subject: spi: Use 'None' to signal the missing CS# pin. --- decoders/nrf24l01/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/nrf24l01/pd.py') 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: -- cgit v1.2.3-70-g09d2