Reset pnd->iLastError in nfc.c.

This commit is contained in:
Romain Tartiere 2010-08-18 14:44:19 +00:00
parent 769eef20f7
commit c9f88e17a1
2 changed files with 2 additions and 2 deletions

View file

@ -463,8 +463,6 @@ pn53x_InAutoPoll(nfc_device_t* pnd,
bool res; bool res;
byte_t *pbtTxInAutoPoll; byte_t *pbtTxInAutoPoll;
pnd->iLastError = 0;
if(pnd->nc == NC_PN531) { if(pnd->nc == NC_PN531) {
// TODO This function is not supported by pn531 (set errno = ENOSUPP or similar) // TODO This function is not supported by pn531 (set errno = ENOSUPP or similar)
return false; return false;

View file

@ -593,6 +593,8 @@ nfc_initiator_poll_targets(nfc_device_t* pnd,
const byte_t btPollNr, const byte_t btPeriod, const byte_t btPollNr, const byte_t btPeriod,
nfc_target_t* pntTargets, size_t* pszTargetFound) nfc_target_t* pntTargets, size_t* pszTargetFound)
{ {
pnd->iLastError = 0;
return pn53x_InAutoPoll(pnd, pnttTargetTypes, szTargetTypes, btPollNr, btPeriod, pntTargets, pszTargetFound); return pn53x_InAutoPoll(pnd, pnttTargetTypes, szTargetTypes, btPollNr, btPeriod, pntTargets, pszTargetFound);
} }