Testing pm3 communication

This commit is contained in:
Philippe Teuwen 2019-04-14 17:25:17 +02:00
parent 3cba736841
commit 04c0384d3e
6 changed files with 25 additions and 3 deletions

View file

@ -311,7 +311,6 @@ int main(int argc, char *argv[]) {
return 1;
}
port = argv[i];
PrintAndLogEx(INFO, "Using UART port %s.\n", port);
continue;
}
@ -467,8 +466,10 @@ int main(int argc, char *argv[]) {
if (port != NULL)
usb_present = OpenProxmark(port, waitCOMPort, 20, false, speed);
if (TestProxmark() == 0)
usb_present = false;
if (!usb_present)
PrintAndLogEx(NORMAL, "Running in " _YELLOW_("OFFLINE") "mode. Check \"%s -h\" if it's not what you want.\n", exec_name);
PrintAndLogEx(INFO, "Running in " _YELLOW_("OFFLINE") "mode. Check \"%s -h\" if it's not what you want.\n", exec_name);
#ifdef HAVE_GUI