TestProxmark only if OpenProxmark returned pm3 present
This commit is contained in:
@@ -467,7 +467,7 @@ int main(int argc, char *argv[]) {
|
|||||||
if (port != NULL)
|
if (port != NULL)
|
||||||
usb_present = OpenProxmark(port, waitCOMPort, 20, false, speed);
|
usb_present = OpenProxmark(port, waitCOMPort, 20, false, speed);
|
||||||
|
|
||||||
if (TestProxmark() == 0)
|
if (usb_present && (TestProxmark() == 0))
|
||||||
usb_present = false;
|
usb_present = false;
|
||||||
if (!usb_present)
|
if (!usb_present)
|
||||||
PrintAndLogEx(INFO, "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);
|
||||||
|
|||||||
Reference in New Issue
Block a user