mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
MFsim: RATS_IN_DATA was not a proper bit flag
This commit is contained in:
parent
bed3dcee29
commit
5b7ba3bf50
3 changed files with 3 additions and 3 deletions
|
@ -1256,7 +1256,7 @@ bool SimulateIso14443aInit(uint8_t tagType, uint16_t flags, uint8_t *data, uint8
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy the iRATs if supplied
|
// copy the iRATs if supplied
|
||||||
if ((flags & RATS_IN_DATA) == RATS_IN_DATA) {
|
if ((flags & FLAG_RATS_IN_DATA) == FLAG_RATS_IN_DATA) {
|
||||||
memcpy(rRATS, iRATs, sizeof(iRATs));
|
memcpy(rRATS, iRATs, sizeof(iRATs));
|
||||||
// rats len is dictated by the first char of the string, add 2 crc bytes
|
// rats len is dictated by the first char of the string, add 2 crc bytes
|
||||||
rRATS_len = (iRATs[0] + 2);
|
rRATS_len = (iRATs[0] + 2);
|
||||||
|
|
|
@ -3745,7 +3745,7 @@ int CmdHF14AAIDSim(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rats_len > 0) {
|
if (rats_len > 0) {
|
||||||
flags |= RATS_IN_DATA;
|
flags |= FLAG_RATS_IN_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -779,7 +779,7 @@ typedef struct {
|
||||||
#define FLAG_FORCED_ATQA 0x800
|
#define FLAG_FORCED_ATQA 0x800
|
||||||
#define FLAG_FORCED_SAK 0x1000
|
#define FLAG_FORCED_SAK 0x1000
|
||||||
#define FLAG_CVE21_0430 0x2000
|
#define FLAG_CVE21_0430 0x2000
|
||||||
#define RATS_IN_DATA 0x3000
|
#define FLAG_RATS_IN_DATA 0x4000
|
||||||
|
|
||||||
|
|
||||||
#define MODE_SIM_CSN 0
|
#define MODE_SIM_CSN 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue