Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Pako2 opened this issue Nov 11, 2018 · 1 comment
Closed

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

Pako2 opened this issue Nov 11, 2018 · 1 comment

Comments

@Pako2
Copy link
Contributor

Pako2 commented Nov 11, 2018

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
Copy link
Collaborator

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

  • Test PN532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants