fix: setting pm3_present in flasher.
This commit is contained in:
@@ -76,11 +76,12 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
char *serial_port_name = argv[1];
|
char *serial_port_name = argv[1];
|
||||||
|
|
||||||
if (!OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED)) {
|
session.pm3_present = OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED);
|
||||||
|
if (session.pm3_present) {
|
||||||
|
PrintAndLogEx(NORMAL, _GREEN_("Found"));
|
||||||
|
} else {
|
||||||
PrintAndLogEx(ERR, "Could not find Proxmark3 on " _RED_("%s") ".\n", serial_port_name);
|
PrintAndLogEx(ERR, "Could not find Proxmark3 on " _RED_("%s") ".\n", serial_port_name);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
|
||||||
PrintAndLogEx(NORMAL, _GREEN_("Found"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
res = flash_start_flashing(can_write_bl, serial_port_name);
|
res = flash_start_flashing(can_write_bl, serial_port_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user