This commit is contained in:
iceman1001 2019-04-11 07:40:50 +02:00
parent 7483e56249
commit 7547952a4d
4 changed files with 8 additions and 9 deletions

View file

@ -752,8 +752,7 @@ void wiegand_add_parity(uint8_t *target, uint8_t *source, uint8_t length) {
}
// add HID parity to binary array: ODD prefix for 1st half of ID, EVEN suffix for 2nd half
void wiegand_add_parity_swapped(uint8_t *target, uint8_t *source, uint8_t length)
{
void wiegand_add_parity_swapped(uint8_t *target, uint8_t *source, uint8_t length) {
*(target++) = GetParity(source, ODD, length / 2);
memcpy(target, source, length);
target += length;