mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -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);
|
||||
CLIParserFree(ctx);
|
||||
return PM3_EFATAL;
|
||||
return PM3_SQUIT;
|
||||
}
|
||||
|
||||
static int CmdRev(const char *Cmd) {
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
static int mainret = PM3_ESOFT;
|
||||
static int mainret = PM3_SUCCESS;
|
||||
|
||||
#ifndef LIBPM3
|
||||
#define BANNERMSG1 ""
|
||||
|
@ -574,6 +574,11 @@ check_script:
|
|||
// exit or quit
|
||||
if (mainret == PM3_EFATAL)
|
||||
break;
|
||||
if (mainret == PM3_SQUIT) {
|
||||
// Normal quit, map to 0
|
||||
mainret = PM3_SUCCESS;
|
||||
break;
|
||||
}
|
||||
}
|
||||
free(cmd);
|
||||
cmd = NULL;
|
||||
|
|
|
@ -863,7 +863,8 @@ typedef struct {
|
|||
#define PM3_ENODATA -98
|
||||
// Quit program client: reserved, order to quit the program
|
||||
#define PM3_EFATAL -99
|
||||
|
||||
// Regular quit
|
||||
#define PM3_SQUIT -100
|
||||
|
||||
// LF
|
||||
#define LF_FREQ2DIV(f) ((int)(((12000.0 + (f)/2.0)/(f))-1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue