Fix resetPowerDownPin initial state.

This commit is contained in:
Hector Bravo
2014-02-12 22:19:28 +01:00
parent 3dbfb42d6e
commit 8bb06db299

View File

@@ -26,7 +26,7 @@ MFRC522::MFRC522( byte chipSelectPin, ///< Arduino pin connected to MFRC522's S
// Set the resetPowerDownPin as digital output, do not reset or power down. // Set the resetPowerDownPin as digital output, do not reset or power down.
_resetPowerDownPin = resetPowerDownPin; _resetPowerDownPin = resetPowerDownPin;
pinMode(_resetPowerDownPin, OUTPUT); pinMode(_resetPowerDownPin, OUTPUT);
digitalWrite(_resetPowerDownPin, HIGH); digitalWrite(_resetPowerDownPin, LOW);
// Set SPI bus to work with MFRC522 chip. // Set SPI bus to work with MFRC522 chip.
setSPIConfig(); setSPIConfig();