Prevent from running polling on hardware that does not support it.
This commit is contained in:
parent
71341b871e
commit
c9370e6fac
2 changed files with 8 additions and 0 deletions
|
|
@ -111,6 +111,10 @@ int main(int argc, const char* argv[])
|
|||
nfc_target_t antTargets[2];
|
||||
size_t szTargetFound;
|
||||
|
||||
if(pnd->nc == NC_PN531) {
|
||||
// PN531 doesn't support hardware polling (InAutoPoll)
|
||||
continue;
|
||||
}
|
||||
printf("PN53x will poll during %ld ms\n", btPollNr * szTargetTypes * btPeriod * 150);
|
||||
bool res = nfc_initiator_poll_targets(pnd, &nttMifare, 1, btPollNr, btPeriod, antTargets, &szTargetFound);
|
||||
if( res ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue