mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
No error code on regular exit
This commit is contained in:
parent
00a4895440
commit
cbb976e320
3 changed files with 8 additions and 1 deletions
|
@ -282,7 +282,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) {
|
||||||
|
|
|
@ -407,6 +407,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;
|
||||||
|
|
|
@ -706,6 +706,8 @@ typedef struct {
|
||||||
|
|
||||||
// Error codes Usages:
|
// Error codes Usages:
|
||||||
|
|
||||||
|
// Success, regular quit
|
||||||
|
#define PM3_SQUIT 2
|
||||||
// Success, transfer nonces pm3: Sending nonces back to client
|
// Success, transfer nonces pm3: Sending nonces back to client
|
||||||
#define PM3_SNONCES 1
|
#define PM3_SNONCES 1
|
||||||
// Success (no error)
|
// Success (no error)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue