mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
fix dump output
This commit is contained in:
parent
4c6ccc2b04
commit
34212c662c
1 changed files with 8 additions and 8 deletions
|
@ -567,7 +567,7 @@ int demodEM4x05resp(uint32_t *word, bool readCmd) {
|
||||||
int ans = 0;
|
int ans = 0;
|
||||||
|
|
||||||
// test for FSK wave (easiest to 99% ID)
|
// test for FSK wave (easiest to 99% ID)
|
||||||
if (GetFskClock("", FALSE, FALSE)) {
|
if (GetFskClock("", false, false)) {
|
||||||
//valid fsk clocks found
|
//valid fsk clocks found
|
||||||
ans = FSKrawDemod("0 0", false);
|
ans = FSKrawDemod("0 0", false);
|
||||||
if (!ans) {
|
if (!ans) {
|
||||||
|
@ -579,10 +579,10 @@ int demodEM4x05resp(uint32_t *word, bool readCmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// PSK clocks should be easy to detect ( but difficult to demod a non-repeating pattern... )
|
// PSK clocks should be easy to detect ( but difficult to demod a non-repeating pattern... )
|
||||||
ans = GetPskClock("", FALSE, FALSE);
|
ans = GetPskClock("", false, false);
|
||||||
if (ans>0) {
|
if (ans>0) {
|
||||||
//try psk1
|
//try psk1
|
||||||
ans = PSKDemod("0 0 6", FALSE);
|
ans = PSKDemod("0 0 6", false);
|
||||||
if (!ans) {
|
if (!ans) {
|
||||||
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: PSK1 Demod failed, ans: %d", ans);
|
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: PSK1 Demod failed, ans: %d", ans);
|
||||||
} else {
|
} else {
|
||||||
|
@ -596,7 +596,7 @@ int demodEM4x05resp(uint32_t *word, bool readCmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//try psk1 inverted
|
//try psk1 inverted
|
||||||
ans = PSKDemod("0 1 6", FALSE);
|
ans = PSKDemod("0 1 6", false);
|
||||||
if (!ans) {
|
if (!ans) {
|
||||||
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: PSK1 Demod failed, ans: %d", ans);
|
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: PSK1 Demod failed, ans: %d", ans);
|
||||||
} else {
|
} else {
|
||||||
|
@ -626,7 +626,7 @@ int demodEM4x05resp(uint32_t *word, bool readCmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//try biphase
|
//try biphase
|
||||||
ans = ASKbiphaseDemod("0 0 1", FALSE);
|
ans = ASKbiphaseDemod("0 0 1", false);
|
||||||
if (!ans) {
|
if (!ans) {
|
||||||
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: ASK/biphase Demod failed, ans: %d", ans);
|
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: ASK/biphase Demod failed, ans: %d", ans);
|
||||||
} else {
|
} else {
|
||||||
|
@ -636,7 +636,7 @@ int demodEM4x05resp(uint32_t *word, bool readCmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//try diphase (differential biphase or inverted)
|
//try diphase (differential biphase or inverted)
|
||||||
ans = ASKbiphaseDemod("0 1 1", FALSE);
|
ans = ASKbiphaseDemod("0 1 1", false);
|
||||||
if (!ans) {
|
if (!ans) {
|
||||||
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: ASK/biphase Demod failed, ans: %d", ans);
|
if (g_debugMode) PrintAndLog("DEBUG: Error - EM4305: ASK/biphase Demod failed, ans: %d", ans);
|
||||||
} else {
|
} else {
|
||||||
|
@ -731,9 +731,9 @@ int CmdEM4x05dump(const char *Cmd) {
|
||||||
for (; addr < 16; addr++) {
|
for (; addr < 16; addr++) {
|
||||||
if (addr == 2) {
|
if (addr == 2) {
|
||||||
if (usePwd) {
|
if (usePwd) {
|
||||||
PrintAndLog("PWD Address %02u | %08X",addr,pwd);
|
PrintAndLog(" PWD Address %02u | %08X",addr,pwd);
|
||||||
} else {
|
} else {
|
||||||
PrintAndLog("PWD Address 02 | cannot read");
|
PrintAndLog(" PWD Address 02 | cannot read");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
success &= EM4x05ReadWord(addr, pwd, usePwd);
|
success &= EM4x05ReadWord(addr, pwd, usePwd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue