Merge pull request #420 from hramrach/master

nfc-poll: print "Waiting for card removing..." before waiting for card removal
This commit is contained in:
Romain Tartière 2017-07-19 15:02:43 +02:00 committed by GitHub
commit 2869ae2eb8

View file

@ -146,6 +146,7 @@ main(int argc, const char *argv[])
if (res > 0) { if (res > 0) {
print_nfc_target(&nt, verbose); print_nfc_target(&nt, verbose);
printf("Waiting for card removing..."); printf("Waiting for card removing...");
fflush(stdout);
while (0 == nfc_initiator_target_is_present(pnd, NULL)) {} while (0 == nfc_initiator_target_is_present(pnd, NULL)) {}
nfc_perror(pnd, "nfc_initiator_target_is_present"); nfc_perror(pnd, "nfc_initiator_target_is_present");
printf("done.\n"); printf("done.\n");