esprfid / esp-rfid

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
MIT License
1.35k stars 423 forks source link

WaitReady () -> TIMEOUT (when PN532 reader is selected) #190

Closed Pako2 closed 5 years ago

Pako2 commented 5 years ago

The PN532.cpp library contains the following snippet:

bool PN532::WaitReady() 
{
    uint16_t timer = 0;
    while (!IsReady()) 
    {
        if (timer >= PN532_TIMEOUT) 
        {
            Utils::Print("WaitReady() -> TIMEOUT\r\n");
            return false;
        }
        Utils::DelayMilli(10);
        timer += 10;        
    }
    return true;
}

As a result, the WaitReady () -> TIMEOUT message is very often listed in the serial monitor. This is very annoying, and I propose the corresponding part (one single line) in the library to comment.

omersiar commented 5 years ago

I have PN532 lying around somewhere, actually it need to be tested more.