Several changes in the initial connection, see details:
* TestProxmark uses pingng * New command CMD_CAPABILITIES to transmit capabilities from pm3 to host * Use TestProxmark to retrieve capabilities with that new command * CloseProxmark if TestProxmark fails * Hide baudrate for USB and retrieve real baudrate from pm3 for BT
This commit is contained in:
@@ -468,8 +468,11 @@ int main(int argc, char *argv[]) {
|
||||
if (port != NULL)
|
||||
pm3_present = OpenProxmark(port, waitCOMPort, 20, false, speed);
|
||||
|
||||
if (pm3_present && (TestProxmark() == 0))
|
||||
if (pm3_present && (TestProxmark() != PM3_SUCCESS)) {
|
||||
PrintAndLogEx(ERR, _RED_("ERROR:") "cannot communicate with the Proxmark\n");
|
||||
CloseProxmark();
|
||||
pm3_present = false;
|
||||
}
|
||||
if (!pm3_present)
|
||||
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