mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: unify debug messages for FSK demod in AWID,HID,IO,PARADOX,PYRAMID, all neat and same.
This commit is contained in:
parent
dc0e0aa93f
commit
eae8c2f7be
8 changed files with 153 additions and 117 deletions
|
@ -248,7 +248,6 @@ int CmdAWIDDemod(const char *Cmd) {
|
|||
}
|
||||
//get binary from fsk wave
|
||||
int waveIdx = 0;
|
||||
|
||||
int idx = detectAWID(bits, &size, &waveIdx);
|
||||
if (idx <= 0){
|
||||
if (g_debugMode){
|
||||
|
@ -261,9 +260,9 @@ int CmdAWIDDemod(const char *Cmd) {
|
|||
else if (idx == -4)
|
||||
PrintAndLog("DEBUG: Error - AWID preamble not found");
|
||||
else if (idx == -5)
|
||||
PrintAndLog("DEBUG: Error - AWID size not correct: %d", size);
|
||||
PrintAndLog("DEBUG: Error - AWID size not correct, size %d", size);
|
||||
else
|
||||
PrintAndLog("DEBUG: Error - AWID error %d",idx);
|
||||
PrintAndLog("DEBUG: Error - AWID error demoding fsk %d",idx);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -364,7 +363,7 @@ int CmdAWIDDemod(const char *Cmd) {
|
|||
}
|
||||
|
||||
if (g_debugMode){
|
||||
PrintAndLog("DEBUG: AWID idx: %d, Len: %d Printing Demod Buffer:", idx, 96);
|
||||
PrintAndLog("DEBUG: AWID idx: %d, Len: %d Printing Demod Buffer:", idx, size);
|
||||
printDemodBuff();
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue