mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 07:05:40 -07:00
Update cmdlfparadox.c
printing an used variable Signed-off-by: Iceman <iceman@iuse.se>
This commit is contained in:
parent
05bc338f66
commit
ec5afd00ad
1 changed files with 6 additions and 2 deletions
|
@ -99,7 +99,7 @@ int demodParadox(bool verbose) {
|
|||
}
|
||||
|
||||
uint32_t hi2 = 0, hi = 0, lo = 0;
|
||||
uint8_t error = 0;
|
||||
uint8_t errors = 0;
|
||||
|
||||
// Remove manchester encoding from FSK bits, skip pre
|
||||
for (uint32_t i = idx + PARADOX_PREAMBLE_LEN; i < (idx + 96); i += 2) {
|
||||
|
@ -107,7 +107,7 @@ int demodParadox(bool verbose) {
|
|||
// not manchester data
|
||||
if (bits[i] == bits[i + 1]) {
|
||||
PrintAndLogEx(WARNING, "Error Manchester at %u", i);
|
||||
error++;
|
||||
errors++;
|
||||
}
|
||||
|
||||
hi2 = (hi2 << 1) | (hi >> 31);
|
||||
|
@ -119,6 +119,10 @@ int demodParadox(bool verbose) {
|
|||
}
|
||||
}
|
||||
|
||||
if (errors) {
|
||||
PrintAndLogEx(WARNING, "Total Manchester Errors... %u", errors);
|
||||
}
|
||||
|
||||
setDemodBuff(bits, size, idx);
|
||||
setClockGrid(50, wave_idx + (idx * 50));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue