Fix communication timing (delay) after PM3 detection.

This commit is contained in:
ikarus 2023-12-29 21:20:47 +01:00
parent faedd3e19e
commit cc5df3447c
2 changed files with 2 additions and 1 deletions

View file

@ -452,7 +452,7 @@ static int enter_bootloader(char *serial_port_name, bool wait_appear) {
SendCommandBL(CMD_HARDWARE_RESET, 0, 0, 0, NULL, 0);
PrintAndLogEx(SUCCESS, "Press and hold down button NOW if your bootloader requires it.");
}
msleep(100);
msleep(200);
CloseProxmark(g_session.current_device);
// Let time to OS to make the port disappear
msleep(1000);

View file

@ -671,6 +671,7 @@ static int flash_pm3(char *serial_port_name, uint8_t num_files, const char *file
if (OpenProxmark(&g_session.current_device, serial_port_name, true, 60, true, FLASHMODE_SPEED)) {
PrintAndLogEx(NORMAL, _GREEN_(" found"));
msleep(200);
} else {
PrintAndLogEx(ERR, "Could not find Proxmark3 on " _RED_("%s") ".\n", serial_port_name);
ret = PM3_ETIMEOUT;