let OpenPm be responsible of setting session.pm3_present

This commit is contained in:
Philippe Teuwen
2019-05-07 20:37:23 +02:00
parent 061321c353
commit 532dbf28a1
4 changed files with 4 additions and 4 deletions

View File

@@ -77,8 +77,7 @@ int main(int argc, char **argv) {
char *serial_port_name = argv[1];
session.pm3_present = OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED);
if (session.pm3_present) {
if (OpenProxmark(serial_port_name, true, 60, true, FLASHMODE_SPEED)) {
PrintAndLogEx(NORMAL, _GREEN_("Found"));
} else {
PrintAndLogEx(ERR, "Could not find Proxmark3 on " _RED_("%s") ".\n", serial_port_name);