Fix pin handling part 4/4

This commit is contained in:
Theo Arends 2020-04-27 16:55:56 +02:00
parent 86f801c349
commit 1dda2ac663
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ uint8_t pn532_newdata_len = 0;
void PN532_Init(void)
{
if (PinUsed(GPIO_PN532_RXD9) && PinUsed(GPIO_PN532_TXD)) {
if (PinUsed(GPIO_PN532_RXD) && PinUsed(GPIO_PN532_TXD)) {
PN532_Serial = new TasmotaSerial(Pin(GPIO_PN532_RXD), Pin(GPIO_PN532_TXD), 1);
if (PN532_Serial->begin(115200)) {
if (PN532_Serial->hardwareSerial()) { ClaimSerial(); }