Flasher: Avoid race condition when flasher finds the not yet closed pm3 port

This commit is contained in:
Philippe Teuwen 2019-03-31 12:15:49 +02:00
parent 21b063da93
commit 43ca641939

View file

@ -318,6 +318,8 @@ static int enter_bootloader(char *serial_port_name) {
}
msleep(100);
CloseProxmark();
// Let time to OS to make the port disappear
msleep(1000);
bool opened = OpenProxmark(serial_port_name, true, 60, true);
if (opened) {