mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 16:14:59 +08:00
fix REV macros & hitagS
This commit is contained in:
parent
bddd2a9fc1
commit
3c44ef39f7
2 changed files with 4 additions and 4 deletions
|
@ -454,7 +454,7 @@ static void hitagS_handle_reader_command(uint8_t *rx, const size_t rxlen,
|
||||||
//add crc8
|
//add crc8
|
||||||
*txlen = 40;
|
*txlen = 40;
|
||||||
crc = CRC_PRESET;
|
crc = CRC_PRESET;
|
||||||
calc_crc(&crc, tag.pages[1][2]), 8);
|
calc_crc(&crc, tag.pages[1][2], 8);
|
||||||
calc_crc(&crc, tag.pwdh0, 8);
|
calc_crc(&crc, tag.pwdh0, 8);
|
||||||
calc_crc(&crc, tag.pwdl0, 8);
|
calc_crc(&crc, tag.pwdl0, 8);
|
||||||
calc_crc(&crc, tag.pwdl1, 8);
|
calc_crc(&crc, tag.pwdl1, 8);
|
||||||
|
|
|
@ -55,15 +55,15 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef REV16
|
#ifndef REV16
|
||||||
#define REV16(x) (REV8(x) + (REV8 (x >> 8) << 8))
|
#define REV16(x) (REV8(x) + (REV8 ((x) >> 8) << 8))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef REV32
|
#ifndef REV32
|
||||||
#define REV32(x) (REV16(x) + (REV16(x >> 16) << 16))
|
#define REV32(x) (REV16(x) + (REV16((x) >> 16) << 16))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef REV64
|
#ifndef REV64
|
||||||
#define REV64(x) (REV32(x) + (REV32(x >> 32) << 32))
|
#define REV64(x) (REV32(x) + (REV32((x) >> 32) << 32))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef BIT32
|
#ifndef BIT32
|
||||||
|
|
Loading…
Reference in a new issue