mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 22:33:48 -07:00
Use ARRAYLEN instead of constant length
This commit is contained in:
parent
62ccbc0a37
commit
0fdbdb044f
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ static void createBlocks(uint32_t *blocks, uint8_t rc, uint16_t fc, uint32_t cn,
|
||||||
|
|
||||||
// every byte has a 9th bit which is the inverse of the last bit
|
// every byte has a 9th bit which is the inverse of the last bit
|
||||||
uint8_t bonus_bit[8] = {0};
|
uint8_t bonus_bit[8] = {0};
|
||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < ARRAYLEN(bonus_bit); i++) {
|
||||||
bonus_bit[i] = !(arr[i] & 0x1);
|
bonus_bit[i] = !(arr[i] & 0x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue