Cleaned non-magic exit
This commit is contained in:
parent
0cece94778
commit
619b476028
1 changed files with 2 additions and 0 deletions
|
@ -385,6 +385,8 @@ main(int argc, const char *argv[])
|
||||||
} else if (iAction == 3) {
|
} else if (iAction == 3) {
|
||||||
if (!check_magic()) {
|
if (!check_magic()) {
|
||||||
printf("Card is not magic\n");
|
printf("Card is not magic\n");
|
||||||
|
nfc_close(pnd);
|
||||||
|
nfc_exit(context);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
} else {
|
} else {
|
||||||
printf("Card is magic\n");
|
printf("Card is magic\n");
|
||||||
|
|
Loading…
Reference in a new issue