mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
flasher updated again, should work more solid now
This commit is contained in:
parent
2d7fc168a2
commit
d8193fa5ac
2 changed files with 6 additions and 6 deletions
|
@ -337,14 +337,14 @@ static int enter_bootloader(void)
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
fprintf(stderr,"Press and hold down button NOW if your bootloader requires it.\n");
|
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();
|
CloseProxmark();
|
||||||
sleep(1);
|
|
||||||
while (!OpenProxmark(0)) {
|
fprintf(stderr,"Waiting for Proxmark to reappear on USB...");
|
||||||
|
do {
|
||||||
sleep(1);
|
sleep(1);
|
||||||
fprintf(stderr, ".");
|
fprintf(stderr, ".");
|
||||||
}
|
} while (!OpenProxmark(0));
|
||||||
fprintf(stderr," Found.\n");
|
fprintf(stderr," Found.\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -488,5 +488,6 @@ int flash_stop_flashing(void) {
|
||||||
UsbCommand c = {CMD_HARDWARE_RESET};
|
UsbCommand c = {CMD_HARDWARE_RESET};
|
||||||
// SendCommand_(&c);
|
// SendCommand_(&c);
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
msleep(100);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,6 @@ int OpenProxmark(size_t i) {
|
||||||
sp = uart_open(serial_port_name);
|
sp = uart_open(serial_port_name);
|
||||||
if (sp == INVALID_SERIAL_PORT) {
|
if (sp == INVALID_SERIAL_PORT) {
|
||||||
//poll once a second
|
//poll once a second
|
||||||
msleep(100);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue