+ uint8_t firstParity = GetParity( DemodBuffer, EVEN, 63);
+ if ( firstParity != DemodBuffer[63] ) {
+ PrintAndLog("DEBUG: Error - Nedap 1st 64bit parity check failed: %d|%d ", DemodBuffer[63], firstParity);
+ return 0;
+ }
+
+ uint8_t secondParity = GetParity( DemodBuffer+64, EVEN, 63);
+ if ( secondParity != DemodBuffer[127] ) {
+ PrintAndLog("DEBUG: Error - Nedap 2st 64bit parity check failed: %d|%d ", DemodBuffer[127], secondParity);
+ return 0;
+ }
+