Skip to content

Commit

Permalink
nfc-poll: print "Waiting for card removing..." before waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
hramrach committed Jul 14, 2017
1 parent 14f48d0 commit f941758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/nfc-poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ main(int argc, const char *argv[])
if (res > 0) {
print_nfc_target(&nt, verbose);
printf("Waiting for card removing...");
fflush(stdout);
while (0 == nfc_initiator_target_is_present(pnd, NULL)) {}
nfc_perror(pnd, "nfc_initiator_target_is_present");
printf("done.\n");
Expand Down

0 comments on commit f941758

Please sign in to comment.