Stop target listing when the maximal wanted target count is reached.

This commit is contained in:
Romuald Conty 2010-09-21 16:05:24 +00:00
parent dfcb6f6cd3
commit 52354daa1e

View file

@ -405,6 +405,8 @@ nfc_initiator_list_passive_targets (nfc_device_t * pnd, const nfc_modulation_t n
if (szTargets > szTargetFound) {
memcpy (&(anti[szTargetFound]), &nti, sizeof (nfc_target_info_t));
} else {
break;
}
szTargetFound++;
}