return 0;
}
-
// Works for 26bits.
int GetPyramidBits(uint32_t fc, uint32_t cn, uint8_t *pyramidBits) {
wiegand_add_parity(pre+80, wiegand, 24);
// add paritybits (bitsource, dest, sourcelen, paritylen, parityType (odd, even,)
- addParity(pre+8, pyramidBits+8, 112, 8, 1);
-
+ addParity(pre+8, pyramidBits+8, 102, 8, 1);
+
// add checksum
uint8_t csBuff[13];
for (uint8_t i = 0; i < 13; i++)
uint32_t crc = CRC8Maxim(csBuff, 13);
num_to_bytebits(crc, 8, pyramidBits+120);
-
return 1;
}