]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfnoralsy.c
Update README.md
[proxmark3-svn] / client / cmdlfnoralsy.c
index 54869f1596ff0bd918c488ff4ffbc3a2157c1405..6eb9f7ee7738c0105a2b124938094ad01a9361af 100644 (file)
@@ -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;
Impressum, Datenschutz