mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
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:
parent
7d1161d7d8
commit
e2e0b704c5
5 changed files with 54 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue