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