mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
text
This commit is contained in:
parent
532dbf28a1
commit
bf0ab55833
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,7 @@ static int enter_bootloader(char *serial_port_name) {
|
||||||
// Let time to OS to make the port disappear
|
// Let time to OS to make the port disappear
|
||||||
msleep(1000);
|
msleep(1000);
|
||||||
|
|
||||||
bool opened = OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED);
|
if (OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED)) {
|
||||||
if (opened) {
|
|
||||||
PrintAndLogEx(NORMAL, " " _GREEN_("Found"));
|
PrintAndLogEx(NORMAL, " " _GREEN_("Found"));
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -445,6 +444,7 @@ void flash_free(flash_file_t *ctx) {
|
||||||
|
|
||||||
// just reset the unit
|
// just reset the unit
|
||||||
int flash_stop_flashing(void) {
|
int flash_stop_flashing(void) {
|
||||||
|
PrintAndLogEx(SUCCESS, _BLUE_("Resetting hardware...") "Subsequent communication error is " _BLUE_("normal"));
|
||||||
SendCommandOLD(CMD_HARDWARE_RESET, 0, 0, 0, NULL, 0);
|
SendCommandOLD(CMD_HARDWARE_RESET, 0, 0, 0, NULL, 0);
|
||||||
msleep(100);
|
msleep(100);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue