mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-07 13:41:18 -07:00
Comms refactor (prerequisite of libproxmark work) (#371)
* Refactor the comms code only from PR#346, without comms_globals.h. * OSX: Add note for example serial port
This commit is contained in:
parent
e17660d5f7
commit
afdcb8c159
19 changed files with 540 additions and 334 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "ui.h"
|
||||
#include "cmdparser.h"
|
||||
#include "proxmark3.h"
|
||||
#include "comms.h"
|
||||
|
||||
|
||||
void CmdsHelp(const command_t Commands[])
|
||||
|
@ -23,7 +24,7 @@ void CmdsHelp(const command_t Commands[])
|
|||
int i = 0;
|
||||
while (Commands[i].Name)
|
||||
{
|
||||
if (!offline || Commands[i].Offline)
|
||||
if (!IsOffline() || Commands[i].Offline)
|
||||
PrintAndLog("%-16s %s", Commands[i].Name, Commands[i].Help);
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue