+ // here 62 is length.
+ uint8_t first63bit_parity = GetParity( DemodBuffer, ODD, 62);
+ // Parity bits: 0-62 == 63
+ // here 62 is pos in a zero based array
+ if ( first63bit_parity != DemodBuffer[62] ) {
+ PrintAndLog("1st half parity check failed: %d | %d ", DemodBuffer[62], first63bit_parity);
+ return 0;
+ }
+
+ // uint8_t second63bit_parity = GetParity( DemodBuffer+64, ODD, 63);
+ // if ( second63bit_parity != DemodBuffer[127] ) {
+ // PrintAndLog("2st half parity check failed: %d | %d ", DemodBuffer[127], second63bit_parity);
+ // return 0;
+ // }
+