mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix clarify bool usage
This commit is contained in:
parent
12a4c5f202
commit
49687f4749
1 changed files with 3 additions and 2 deletions
|
@ -130,8 +130,9 @@ static void pacCardIdToRaw(uint8_t *outRawBytes, const char *cardId) {
|
|||
pattern = reflect8(idbytes[i - 2]);
|
||||
pattern |= oddparity8(pattern);
|
||||
if (i > 3) checksum ^= idbytes[i - 2];
|
||||
} else
|
||||
pattern = (reflect8(checksum) & 0xFE) | oddparity8(checksum);
|
||||
} else {
|
||||
pattern = (reflect8(checksum) & 0xFE) | (oddparity8(checksum));
|
||||
}
|
||||
pattern <<= shift;
|
||||
|
||||
outRawBytes[index] |= pattern >> 8 & 0xFF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue