From: roel@libnfc.org Date: Thu, 21 Mar 2013 16:06:09 +0000 (+0000) Subject: avoid rolling dots over the screen when proxmark is not available (yet) X-Git-Tag: v1.0.0~119 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/4a049b7847f69c9f4554c62c34085e1a0a77cb51 avoid rolling dots over the screen when proxmark is not available (yet) --- 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)