let OpenPm be responsible of setting session.pm3_present

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

No files matched your search

+1 -2
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);