Partially revert make SPI CS pin optional (#1187)

This commit is contained in:
Otto Winter
2020-07-25 14:05:31 +02:00
committed by GitHub
parent 62468198d6
commit 275c12150e
7 changed files with 19 additions and 18 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ void PN532::setup() {
// (this may time out, but that's ok)
// 3. Send SAM config command with normal mode without waiting for ready bit (IRQ not initialized yet)
// 4. Probably optional, send SAM config again, this time checking ACK and return value
if (this->cs_)
this->cs_->digital_write(false);
this->cs_->digital_write(false);
delay(10);
// send dummy firmware version command to get synced up