mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
more returns
This commit is contained in:
parent
486211599d
commit
420ca1b235
2 changed files with 6 additions and 6 deletions
|
@ -15,9 +15,9 @@ static int CmdHelp(const char *Cmd);
|
||||||
static int CmdPacDemod(const char *Cmd) {
|
static int CmdPacDemod(const char *Cmd) {
|
||||||
|
|
||||||
//NRZ
|
//NRZ
|
||||||
if (!NRZrawDemod(Cmd, false)) {
|
if (NRZrawDemod(Cmd, false) != PM3_SUCCESS) {
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error - PAC: NRZ Demod failed");
|
PrintAndLogEx(DEBUG, "DEBUG: Error - PAC: NRZ Demod failed");
|
||||||
return 0;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
size_t size = DemodBufferLen;
|
size_t size = DemodBufferLen;
|
||||||
int ans = detectPac(DemodBuffer, &size);
|
int ans = detectPac(DemodBuffer, &size);
|
||||||
|
@ -31,7 +31,7 @@ static int CmdPacDemod(const char *Cmd) {
|
||||||
else
|
else
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error - PAC: ans: %d", ans);
|
PrintAndLogEx(DEBUG, "DEBUG: Error - PAC: ans: %d", ans);
|
||||||
|
|
||||||
return 0;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
setDemodBuff(DemodBuffer, 128, ans);
|
setDemodBuff(DemodBuffer, 128, ans);
|
||||||
setClockGrid(g_DemodClock, g_DemodStartIdx + (ans * g_DemodClock));
|
setClockGrid(g_DemodClock, g_DemodStartIdx + (ans * g_DemodClock));
|
||||||
|
@ -48,7 +48,7 @@ static int CmdPacDemod(const char *Cmd) {
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "PAC/Stanley Tag Found -- Raw: %08X%08X%08X%08X", raw1, raw2, raw3, raw4);
|
PrintAndLogEx(NORMAL, "PAC/Stanley Tag Found -- Raw: %08X%08X%08X%08X", raw1, raw2, raw3, raw4);
|
||||||
PrintAndLogEx(NORMAL, "\nHow the Raw ID is translated by the reader is unknown");
|
PrintAndLogEx(NORMAL, "\nHow the Raw ID is translated by the reader is unknown");
|
||||||
return 1;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdPacRead(const char *Cmd) {
|
static int CmdPacRead(const char *Cmd) {
|
||||||
|
@ -66,7 +66,7 @@ static command_t CommandTable[] = {
|
||||||
static int CmdHelp(const char *Cmd) {
|
static int CmdHelp(const char *Cmd) {
|
||||||
(void)Cmd; // Cmd is not used so far
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdLFPac(const char *Cmd) {
|
int CmdLFPac(const char *Cmd) {
|
||||||
|
|
|
@ -86,7 +86,7 @@ static int CmdVisa2kDemod(const char *Cmd) {
|
||||||
|
|
||||||
save_restoreGB(GRAPH_SAVE);
|
save_restoreGB(GRAPH_SAVE);
|
||||||
|
|
||||||
//sCmdAskEdgeDetect("");
|
//CmdAskEdgeDetect("");
|
||||||
|
|
||||||
//ASK / Manchester
|
//ASK / Manchester
|
||||||
bool st = true;
|
bool st = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue