X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/125a98a1102cc27cefeba77f6d37542c1c475c52..ba8b5c173b20a92036384e114f9b5827de7596dc:/client/flash.c diff --git a/client/flash.c b/client/flash.c index 4af0dea8..b59fff04 100644 --- a/client/flash.c +++ b/client/flash.c @@ -337,14 +337,14 @@ static int enter_bootloader(void) 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; @@ -488,5 +488,6 @@ int flash_stop_flashing(void) { UsbCommand c = {CMD_HARDWARE_RESET}; // SendCommand_(&c); SendCommand(&c); + msleep(100); return 0; }