mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Rework Cmd exposed API, use more static and fix [-Wmissing-prototypes], ongoing...
This commit is contained in:
parent
f6a6ec8447
commit
8aa5b42cdf
14 changed files with 135 additions and 133 deletions
|
@ -12,7 +12,7 @@
|
|||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
//see NRZDemod for what args are accepted
|
||||
int CmdPacDemod(const char *Cmd) {
|
||||
static int CmdPacDemod(const char *Cmd) {
|
||||
|
||||
//NRZ
|
||||
if (!NRZrawDemod(Cmd, false)) {
|
||||
|
@ -51,7 +51,7 @@ int CmdPacDemod(const char *Cmd) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int CmdPacRead(const char *Cmd) {
|
||||
static int CmdPacRead(const char *Cmd) {
|
||||
lf_read(true, 4096 * 2 + 20);
|
||||
return CmdPacDemod(Cmd);
|
||||
}
|
||||
|
@ -63,14 +63,14 @@ static command_t CommandTable[] = {
|
|||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
int CmdLFPac(const char *Cmd) {
|
||||
clearCommandBuffer();
|
||||
CmdsParse(CommandTable, Cmd);
|
||||
static int CmdHelp(const char *Cmd) {
|
||||
CmdsHelp(CommandTable);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CmdHelp(const char *Cmd) {
|
||||
CmdsHelp(CommandTable);
|
||||
int CmdLFPac(const char *Cmd) {
|
||||
clearCommandBuffer();
|
||||
CmdsParse(CommandTable, Cmd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue