Fix infinite software polling
This commit is contained in:
parent
ace9fb27b1
commit
8fa83ac70f
1 changed files with 19 additions and 16 deletions
|
@ -1016,6 +1016,8 @@ pn53x_initiator_poll_target (nfc_device_t * pnd,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pn53x_configure (pnd, NDO_INFINITE_SELECT, true);
|
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 p=0; p<uiPollNr; p++) {
|
||||||
for (size_t n=0; n<szModulations; n++) {
|
for (size_t n=0; n<szModulations; n++) {
|
||||||
byte_t *pbtInitiatorData;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue