TestProxmark only if OpenProxmark returned pm3 present

This commit is contained in:
Philippe Teuwen 2019-04-26 23:26:51 +02:00
parent a1bb2ec106
commit 4a576efc44

View file

@ -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);