From f9417586c0c8e23058e463a1d30e47659dbe5519 Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Fri, 14 Jul 2017 16:19:26 +0200 Subject: [PATCH] nfc-poll: print "Waiting for card removing..." before waiting --- examples/nfc-poll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/nfc-poll.c b/examples/nfc-poll.c index fde8ea8..f8f30ba 100644 --- a/examples/nfc-poll.c +++ b/examples/nfc-poll.c @@ -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");