Skip to content

Commit

Permalink
Update cmdlfindala.c
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
mwalker33 committed Aug 17, 2024
1 parent 059b657 commit e705c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/cmdlfindala.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,6 @@ int getIndalaBits(uint8_t fc, uint16_t cn, uint8_t *bits) {
bits[51] = ((cn >> 8) & 1); // b9 - c
bits[46] = ((cn >> 7) & 1); // b8
bits[33] = ((cn >> 6) & 1); // b7 - c
// bits[61] = ((cn >> 6) & 1); // b7 - c
bits[37] = ((cn >> 5) & 1); // b6 - c
bits[54] = ((cn >> 4) & 1); // b5
bits[56] = ((cn >> 3) & 1); // b4
Expand Down Expand Up @@ -1182,6 +1181,7 @@ int getIndalaBits(uint8_t fc, uint16_t cn, uint8_t *bits) {
else
p2 ^= bits[i];
}

bits[34] = p1; // parity for odd bits
bits[38] = p2; // parity for even bits

Expand Down

0 comments on commit e705c34

Please sign in to comment.