Fix nfc_initiator_select_passive_target() in several utils if tag is missing
This commit is contained in:
parent
8127a2ca63
commit
386e08d8b3
4 changed files with 8 additions and 8 deletions
|
|
@ -247,7 +247,7 @@ main(int argc, char *argv[])
|
|||
.nmt = NMT_ISO14443A,
|
||||
.nbr = NBR_106,
|
||||
};
|
||||
if (nfc_initiator_select_passive_target(pndInitiator, nm, NULL, 0, &ntRealTarget) < 0) {
|
||||
if (nfc_initiator_select_passive_target(pndInitiator, nm, NULL, 0, &ntRealTarget) <= 0) {
|
||||
printf("Error: no tag was found\n");
|
||||
nfc_close(pndInitiator);
|
||||
nfc_exit(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue