mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
commit
b77099e195
3 changed files with 9 additions and 3 deletions
|
@ -283,7 +283,7 @@ static int CmdQuit(const char *Cmd) {
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
return PM3_EFATAL;
|
return PM3_SQUIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdRev(const char *Cmd) {
|
static int CmdRev(const char *Cmd) {
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int mainret = PM3_ESOFT;
|
static int mainret = PM3_SUCCESS;
|
||||||
|
|
||||||
#ifndef LIBPM3
|
#ifndef LIBPM3
|
||||||
#define BANNERMSG1 ""
|
#define BANNERMSG1 ""
|
||||||
|
@ -574,6 +574,11 @@ check_script:
|
||||||
// exit or quit
|
// exit or quit
|
||||||
if (mainret == PM3_EFATAL)
|
if (mainret == PM3_EFATAL)
|
||||||
break;
|
break;
|
||||||
|
if (mainret == PM3_SQUIT) {
|
||||||
|
// Normal quit, map to 0
|
||||||
|
mainret = PM3_SUCCESS;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
free(cmd);
|
free(cmd);
|
||||||
cmd = NULL;
|
cmd = NULL;
|
||||||
|
|
|
@ -863,7 +863,8 @@ typedef struct {
|
||||||
#define PM3_ENODATA -98
|
#define PM3_ENODATA -98
|
||||||
// Quit program client: reserved, order to quit the program
|
// Quit program client: reserved, order to quit the program
|
||||||
#define PM3_EFATAL -99
|
#define PM3_EFATAL -99
|
||||||
|
// Regular quit
|
||||||
|
#define PM3_SQUIT -100
|
||||||
|
|
||||||
// LF
|
// LF
|
||||||
#define LF_FREQ2DIV(f) ((int)(((12000.0 + (f)/2.0)/(f))-1))
|
#define LF_FREQ2DIV(f) ((int)(((12000.0 + (f)/2.0)/(f))-1))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue