SendCommand(&c);
fprintf(stderr,"Press and hold down button NOW if your bootloader requires it.\n");
}
- fprintf(stderr,"Waiting for Proxmark to reappear on USB...");
-
+ msleep(100);
CloseProxmark();
- sleep(1);
- while (!OpenProxmark(0)) {
+
+ fprintf(stderr,"Waiting for Proxmark to reappear on USB...");
+ do {
sleep(1);
fprintf(stderr, ".");
- }
+ } while (!OpenProxmark(0));
fprintf(stderr," Found.\n");
return 0;
UsbCommand c = {CMD_HARDWARE_RESET};
// SendCommand_(&c);
SendCommand(&c);
+ msleep(100);
return 0;
}