diff options
author | Jens Steinhauser <jens.steinhauser@gmail.com> | 2014-10-19 22:54:51 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-19 23:01:26 +0200 |
commit | 8a110ab1ea46d89d36a610e4249fe1eabed27757 (patch) | |
tree | 4da78120c79e3092c0dc0db79ea24f8350f345f4 /decoders/nrf24l01/pd.py | |
parent | 22630a3d54361f083877a68724e8b823d5e063a7 (diff) | |
download | libsigrokdecode-8a110ab1ea46d89d36a610e4249fe1eabed27757.tar.gz libsigrokdecode-8a110ab1ea46d89d36a610e4249fe1eabed27757.zip |
spi: Use 'None' to signal the missing CS# pin.
Diffstat (limited to 'decoders/nrf24l01/pd.py')
-rw-r--r-- | decoders/nrf24l01/pd.py | 4 |
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: |