mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
Flasher: Avoid race condition when flasher finds the not yet closed pm3 port
This commit is contained in:
parent
21b063da93
commit
43ca641939
1 changed files with 2 additions and 0 deletions
|
@ -318,6 +318,8 @@ static int enter_bootloader(char *serial_port_name) {
|
||||||
}
|
}
|
||||||
msleep(100);
|
msleep(100);
|
||||||
CloseProxmark();
|
CloseProxmark();
|
||||||
|
// Let time to OS to make the port disappear
|
||||||
|
msleep(1000);
|
||||||
|
|
||||||
bool opened = OpenProxmark(serial_port_name, true, 60, true);
|
bool opened = OpenProxmark(serial_port_name, true, 60, true);
|
||||||
if (opened) {
|
if (opened) {
|
||||||
|
|
Loading…
Reference in a new issue