From 4a576efc44e503a76aed659824d016d534f51c59 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 26 Apr 2019 23:26:51 +0200 Subject: [PATCH] TestProxmark only if OpenProxmark returned pm3 present --- client/proxmark3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/proxmark3.c b/client/proxmark3.c index aef3c5979..a16a6a7a8 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -467,7 +467,7 @@ int main(int argc, char *argv[]) { if (port != NULL) usb_present = OpenProxmark(port, waitCOMPort, 20, false, speed); - if (TestProxmark() == 0) + if (usb_present && (TestProxmark() == 0)) usb_present = false; if (!usb_present) PrintAndLogEx(INFO, "Running in " _YELLOW_("OFFLINE") "mode. Check \"%s -h\" if it's not what you want.\n", exec_name);