nfc-poll: print "Waiting for card removing..." before waiting

This commit is contained in:
Michal Suchanek 2017-07-14 16:19:26 +02:00
parent 14f48d0122
commit f9417586c0

View file

@ -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");