Fix infinite software polling

This commit is contained in:
Romuald Conty 2011-10-04 21:42:06 +00:00
parent ace9fb27b1
commit 8fa83ac70f

View file

@ -1016,6 +1016,8 @@ pn53x_initiator_poll_target (nfc_device_t * pnd,
}
} else {
pn53x_configure (pnd, NDO_INFINITE_SELECT, true);
// FIXME It does not support DEP targets
do {
for (size_t p=0; p<uiPollNr; p++) {
for (size_t n=0; n<szModulations; n++) {
byte_t *pbtInitiatorData;
@ -1034,6 +1036,7 @@ pn53x_initiator_poll_target (nfc_device_t * pnd,
}
}
}
} while (uiPollNr==0xff); // uiPollNr==0xff means infinite polling
}
return false;
}