mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
ADD: 'LF VISA2000' added one checksum test when demod / clone / sim
CHG: 'LF NORALSY' when chksum fails, return 0, to indicate for LF SEARCH that it failed.
This commit is contained in:
parent
32da0a464e
commit
0a7e86db81
2 changed files with 33 additions and 19 deletions
|
@ -109,8 +109,14 @@ int CmdNoralsyDemod(const char *Cmd) {
|
|||
chk1 = bytebits_to_byte(DemodBuffer+72, 4);
|
||||
chk2 = bytebits_to_byte(DemodBuffer+76, 4);
|
||||
// test checksums
|
||||
if ( chk1 != calc1 ) printf("checksum 1 failed %x - %x\n", chk1, calc1);
|
||||
if ( chk2 != calc2 ) printf("checksum 2 failed %x - %x\n", chk2, calc2);
|
||||
if ( chk1 != calc1 ) {
|
||||
printf("checksum 1 failed %x - %x\n", chk1, calc1);
|
||||
return 0;
|
||||
}
|
||||
if ( chk2 != calc2 ) {
|
||||
printf("checksum 2 failed %x - %x\n", chk2, calc2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
PrintAndLog("Noralsy Tag Found: Card ID %u, Raw: %08X%08X%08X", cardid, raw1 ,raw2, raw3);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue