Remove redundant HSPI pins from PN532 constructor

This commit is contained in:
Laura Hausmann 2023-04-22 03:10:58 +02:00
parent 9b2818f11b
commit f29a8ed4fd
Signed by: zotan
GPG key ID: D044E84C5BE01605
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ public:
static volatile int irq;
static volatile bool toggleMode;
static uint8_t mode;
explicit PN532Reader(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t ss);
explicit PN532Reader(uint8_t ss);
bool canHaveUnstableIdentifier() override;
bool isNewCardPresent() override;
String getCardUid() override;

View file

@ -22,7 +22,7 @@ HTTPClient* http = new HTTPClient();
Reader* readers[] = {
//new MFRC522CardReader(PIN_HSPI_SS, PIN_HSPI_RST),
new PN532Reader(PIN_HSPI_SCLK, PIN_HSPI_MISO, PIN_HSPI_MOSI, PIN_HSPI_CS0),
new PN532Reader(PIN_HSPI_CS0),
//new RDM6300Reader(PIN_HWSERIAL_RX)
};

View file

@ -8,7 +8,7 @@ volatile bool PN532Reader::toggleMode = false;
uint8_t PN532Reader::mode = 0;
PN532Reader::PN532Reader(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t ss) {
PN532Reader::PN532Reader(uint8_t ss) {
pn532 = new Adafruit_PN532(ss, new SPIClass(HSPI));
}