Skip to content

Commit

Permalink
Merge pull request #296 from cyberbobs/master
Browse files Browse the repository at this point in the history
Fix nfc_initiator_poll_target without tag on PN532
  • Loading branch information
neomilium committed May 26, 2015
2 parents af8fe86 + 11a4e3c commit fecc19d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libnfc/chips/pn53x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,9 @@ pn53x_initiator_poll_target(struct nfc_device *pnd,
if ((res = pn53x_InAutoPoll(pnd, apttTargetTypes, szTargetTypes, uiPollNr, uiPeriod, ntTargets, 0)) < 0)
return res;
switch (res) {
case 0:
return pnd->last_error = NFC_SUCCESS;
break;
case 1:
*pnt = ntTargets[0];
if (pn53x_current_target_new(pnd, pnt) == NULL) {
Expand Down

0 comments on commit fecc19d

Please sign in to comment.