mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 12:07:05 +08:00
TestProxmark only if OpenProxmark returned pm3 present
This commit is contained in:
parent
a1bb2ec106
commit
4a576efc44
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue