From 4a049b7847f69c9f4554c62c34085e1a0a77cb51 Mon Sep 17 00:00:00 2001 From: "roel@libnfc.org" Date: Thu, 21 Mar 2013 16:06:09 +0000 Subject: [PATCH] avoid rolling dots over the screen when proxmark is not available (yet) --- client/flasher.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/flasher.c b/client/flasher.c index cf2cdd95..6019a6b9 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -122,11 +122,13 @@ int main(int argc, char **argv) } serial_port_name = argv[1]; - fprintf(stderr, "Waiting for Proxmark to appear on USB..."); - while (!OpenProxmark(0)) { - fprintf(stderr, "."); - } - fprintf(stderr, " Found.\n"); + + fprintf(stderr,"Waiting for Proxmark to appear on USB..."); + do { + sleep(1); + fprintf(stderr, "."); + } while (!OpenProxmark(0)); + fprintf(stderr," Found.\n"); res = flash_start_flashing(can_write_bl); if (res < 0) -- 2.39.2